|
pls send me code of give the input on text box then all data fecth in remaining textbox through database in jsp. pls help
|
|
|
|
|
|
Nope. But we'll gladly help if you ask something specific.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hi,
I have hundreds of images in my gallery and I want a gallery.php page to display the images with a Next and Previous paging buttons.
I don't want to load all images as slideshow because this will kill the page load performance so just a Next and Previous will do.
My images has a primary key image_id and also image_guid but the url I want to show is using the guid like this:
www.mydomain.com/[-----Image guid here-----].png
because the image is saved with the guid file name like this:
[-----Image guid here-----].png
How can I do this please?
Thanks,
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
I suggest googling for jquery gallery plugins. There are lots of them. Find one you like and implement it.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Hello all,
PHP was one of the first programming languages I learned. However, during this phase, I was not really introduced to OOP in PHP or, honestly, many good practices. Now that I have experience with heavily OOP languages such as Java and C#, I have to say, my previous PHP, while functional, was a bit of a mess. As I am now working on a new project that will be using PHP (an eCommerce one), I would like to do it right from the start.
So (my apologies for the long introduction) here is my real question - how would you recommend separating presentation from logic?
I have a a custom class that handles access and database queries, and will be working on another to represent an item. How would y'all recommend 'presenting' this data to the user? I have a function within my database access class that retrieves the necessary data (either a list of items by category or details for a specific item), but would you advise writing a method within the database access class that uses "echo/print" to display the HTML (and all you would have to do is call the appropriate method of the class instance within the main HTML/PHP page), OR, would you advise, within the main "View" page to simply call the method that just retrieves the necessary data and then write the PHP code necessary to display the data (such as a for loop to print out all the items for a specific category) within the "display" page itself.
I apologize if my question is not clear. I realize either way will work, but I am curious what others consider a good practice.
Thanks!
modified 19-Nov-20 21:01pm.
|
|
|
|
|
Please Check and guide me properly and please also tell me if the theme have errors and how can i resolve.
<b:include data="blog" name="all-head-content">
<title>
<b:if cond='data:blog.pageType == "index"'>
<data:blog.pageTitle/>
<b:else/>
<b:if cond='data:blog.pageType != "error_page"'>
<data:blog.pageName/> | <data:blog.title/>
<b:else/>
Page Not Found | <data:blog.title/>
</b:if>
</b:if>
<b:skin>/
@media only screen and (max-width : 1280px) {
/ The following css will be rendered if device width is less than 1280px */
}
/* Tablets (Landscape) /
@media only screen and (max-width : 1024px) {
/ The following css will be rendered if device width is less than 1024px */
}
/* Tablets (Portrait) /
@media only screen and (max-width : 768px) {
/ The following css will be rendered if device width is less than 768px */
}
/* iPhones /
@media only screen and (max-width : 640px) {
/ The following css will be rendered if device width is less than 640xpx */
}
/* Mobiles /
@media only screen and (max-width : 480px) {
/ The following css will be rendered if device width is less than 480px */
}
/* Small Mobiles /
@media only screen and (max-width : 320px) {
/ The following css will be rendered if device width is less than 320px */
}]]>
posts_no_thumb_sum = 290;
posts_thumb_sum = 240;
img_thumb_height = 80;
img_thumb_width = 80;
first_no_thumb_sum = 580;
first_thumb_sum = 450;
img_thumb_height1 = 145;
img_thumb_width1 = 165;
//<![CDATA[
function removeHtmlTag(strx,chop){
if(strx.indexOf("<")!=-1)
{
var s = strx.split("<");
for(var i=0;i<s.length;i++){
if(s[i].indexOf(">")!=-1){
s[i] = s[i].substring(s[i].indexOf(">")+1,s[i].length);
}
}
strx = s.join("");
}
chop = (chop < strx.length-1) ? chop : strx.length-2;
while(strx.charAt(chop-1)!=' ' && strx.indexOf(' ',chop)!=-1) chop++;
strx = strx.substring(0,chop-1);
return strx+'...';
}
function createSummaryAndThumb(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = posts_no_thumb_sum;
if(img.length>=1) {
imgtag = '<span class="posts-thumb" style="float:left;"><img src="'+img[0].src+'" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></span>';
summ = posts_thumb_sum;
}
var summary = imgtag + '<div class="summary">' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary;
}
function createSummaryAndThumb1(pID){
var div = document.getElementById(pID);
var imgtag = "";
var img = div.getElementsByTagName("img");
var summ = first_no_thumb_sum;
if(img.length>=1) {
imgtag = '<span class="first-post-thumb" style="float:left;"><img src="'+img[0].src+'" width="'+img_thumb_width1+'px" height="'+img_thumb_height1+'px"/></span>';
summ = first_thumb_sum;
}
var summary1 = imgtag + '<div class="summary">' + removeHtmlTag(div.innerHTML,summ) + '</div>';
div.innerHTML = summary1;
}
//]]>
<b:if cond="data:blog.pageType != "static_page"">
<b:if cond="data:blog.pageType != "item"">
.first-post-thumb {
margin-right: 10px;
}
.summary {
height: 100%;
}
<h1>first { /* Styles for the First Post Container */</h1>
<pre>
width: auto;
height: 250px;
float: left;
margin-bottom: 10px;
background-color: #F4F4F4; /* background color for the first post */
border: 1px solid #E5E5E5; /* border for the first post */}
</pre>
.first-body { /* Style for the First Post summary */
color: #545454;
font-size: 13px;
text-align: justify;
padding: 5px 10px;
line-height: 1.5em;
}
<h1>first h3 a, #first h3 a:visited { /* Style for the First Post Title*/</h1>
<pre>
border-bottom: 2px solid #DFDFDF;
color: #515151;
font-size: 20px;
display: block;
margin: 10px auto;
width: 95%;
font-size: 20px;
padding: 0px 0px 4px 0px;
font-weight: bold;
text-align: left;
line-height: 1.4em;
background: none;
</pre>
}
<h1>first h3 a:hover { /* Color on mouseover for the First Post Title */</h1>
<pre>
color: #1061A1;
</pre>
}
.post { /* Styles for the small posts container <em>/
float: left;
margin: 20px 6px 2% 5px;
width: 46%;
height: 230px;
padding: 0px 5px 5px 5px;
background: #FCFCFC; /</em> background color for the small posts <em>/
border: 1px solid #E5E5E5; /</em> border for the small posts */
overflow: hidden;
}
.posts-thumb { /* Style for the small posts thumbnails */
margin-right: 10px;
}
.post-body img, .post-body .tr-caption-container, .Profile img, .Image img, .BlogList .item-thumbnail img {
background: none;
border: none;
box-shadow: none;
padding: 0;
}
h3.post-title a{ /* Style for the small posts titles */
font-size: 14px;
color: #747474;
text-transform: uppercase;
}
h2.date-header { /* Hide the post date */
display: none;
}
.post-footer {
display: none;
}
h3.post-title {
margin: 2px;
}
.readmorebutton {
margin-top: 5px;
}
.readmorebutton a { /* Styles for the Read More link <em>/
color: #767676;
border: 1px solid #E1E1E1;
background: #EAEAEA; /</em> Background color for the Read More link */
text-decoration: none;
padding: 3px 5px;
font-weight: bold;
font-size: 11px;
float: right;
position: relative;
}
.post-comment-link { /* Style for the comment bubble of posts below <em>/
position: absolute;
top: -35px;
right: -10px;
display: block;
border: 1px solid #E1E1E1; /</em> border for the comment bubble <em>/
background: #EAEAEA; /</em> background color for the comment bubble */
font-size: 11px;
position: absolute;
}
<h1>first .post-comment-link { /* Style for the comment bubble of first post */</h1>
<pre>
position: absolute;
top: 10px;
right: 0px;
</pre>
}
.post-comment-link a { /* Link color for the comments bubble*/
padding: 10px;
color: #6A6A6A;
text-decoration: none;
font-weight: bold;
}
<h1>blog-pager {</h1>
<pre>
clear: both;
</pre>
}
<b:section class="header" id="header" maxwidgets="1" showaddelement="no">
<b:widget id="Header1" locked="true" title="creat some thing (Header)" type="Header" visible="true">
<b:includable id="main">
<b:if cond="data:useImage">
<b:if cond="data:imagePlacement == "BEHIND"">
<b:if cond="data:mobile">
<b:else>
<b:else>
Show the image only>
<b:else>
<b:if cond="data:title != """>
<data:title>
<data:content>
<b:include name="quickedit">
<b:section class="main" id="main" preferred="yes" showaddelement="no">
<b:widget id="Blog1" locked="true" title="Blog Posts" type="Blog" version="1" visible="true">
<b:includable id="main" var="top">
<b:if cond="!data:mobile">
<b:include data='top' name='status-message'/>
<b:loop values='data:posts' var='post'>
<b:if cond='data:post.isDateStart and not data:post.isFirstPost'>
</div></div>
</b:if>
<b:if cond='data:post.isDateStart'>
<div class="date-outer">
</b:if>
<b:if cond='data:post.dateHeader'>
<h2 class='date-header'><span><data:post.dateHeader/></span></h2>
</b:if>
<b:if cond='data:post.isDateStart'>
<div class="date-posts">
</b:if>
<div class='post-outer'>
<b:if cond='data:post.isFirstPost'>
<b:if cond="data:blog.homepageUrl == data:blog.url">
<b:if cond="data:post.title">
<b:if cond="data:post.link">
<data:post.title>
<b:else>
<b:if cond="data:post.url">
<data:post.title>
<b:else>
<data:post.title>
<b:if cond="data:blog.pageType != "item"">
<b:if cond="data:blog.pageType != "static_page"">
<data:post.body>
createSummaryAndThumb1("summary1<data:post.id/>");
Read More »
<b:if cond="data:blog.pageType == "item""><data:post.body>
<b:if cond="data:blog.pageType == "static_page""><data:post.body>
<b:else>
<b:include data="post" name="post">
<b:else>
<b:include data="post" name="post">
<b:include cond='data:blog.pageType in {"static_page","item"}' data='post' name='comment_picker'/>
</div>
<!-- Ad -->
<b:if cond='data:post.includeAd'>
<div class='inline-ad'>
<data:adCode/>
</div>
</b:if>
</b:loop>
<b:if cond='data:numPosts != 0'>
</div></div>
</b:if>
</div>
<!-- navigation -->
<b:include name='nextprev'/>
<!-- feed links -->
<b:include name='feedLinks'/>
<b:else>
<b:include name="mobile-main">
<b:if cond="data:top.showPlusOne">
<data:top.googleplusbootstrap>
<b:includable id="backlinkDeleteIcon" var="backlink">
<b:includable id="backlinks" var="post">
<data:post.backlinkslabel>
<b:if cond="data:post.numBacklinks != 0">
<b:includable id="comment-form" var="post">
|
|
|
|
|
Do you seriously think anyone here is going to wade through a massive unformatted code-dump to fix unspecified "errors" and make it "SEO-friendly" for you?
You've been here long enough to know how this works. If you have SPECIFIC questions, we're happy to help. If you dump your entire code in a message and expect us to do your work for you, you're on the wrong site.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Hi
I want to ask what's the best practice for html5 design?
Should I use the , , <footers>, etc or I should just make all as ?
What's your advise?
Thanks,
Jassim
Technology News @ www.JassimRahma.com
|
|
|
|
|
That's highly dependent on policy and your operating environment.
If your page is meant to be scraped, it might be good to use the tags in order to refine the pertinent content. Outside of that scenario, it could be looked at as an organizational technique.
Coming from a world of templates and containers, I personally don't think it adds much value and would not include it as a best practice.
My advice is that if it helps you to organize your design, then use it.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Instructions
1.Print the numbers 1..100
2.For multiples of 3, print "Red" instead of the number
3.For multiples of 5, print "Star" instead of the number
4.For multiples of 3 and 5, print "RedStar" instead of the number
5.Print it out as html/css so if we run it on a web server, it'll work.
|
|
|
|
|
OK, I have done that. Now, do you have a question?
|
|
|
|
|
Could you please do my homework too?
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
It is very rude to post your homework and not even ask a question. Shame shame.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
I am developing store finder functionality in AngularJS. My requirements are 1. remove # from URL and 2. user can bookmark a page. I would explain about second requirement because for first requirement I got a solution but not for second. Lets say I have a store finder page where based on geo-location user get to see list of different stores near by, and on click of a particular store its details will be displayed. Now when user clicks on a particular store details my URL looks something like http://<my machine IP>/store-finder/stores/<storeNumber>/<name-of-store>.
All this works fine when you are in the application flow but when user bookmarks a particular store details and opens next day or in new instance of a browser then everything goes for toss.
I tried URL Rewrite using IIS but when I run the book mark, it fails to load my CSS, JS files with reference to store number directory, which is not possible because there is no physical directory for a store.
Please let me know if anyone faced similar kind of scenario and how you fixed it.
Thanks
|
|
|
|
|
Well, for starters you want to use ui-router so that you introduce state into the Angular application.
After that, you need to setup your page with the primary Angular app to be served as a default page. I'm afraid I've only done this in OWIN/Katana, but URL rewrite should work. For instance, if you have your primary view and .js loads in index.html, you should push index.html for unresolved requests.
The idea is to push the SPA down the pipe to the client, and then let the ui-router state engine determine what should be displayed based on the client-side URL.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
In a vb.net 2010 web form application, I believe that I am getting an internal server error 500 message since
the size of the file may be too large for the browsers I have been using.
When I look at the length of one record for a particular student I find the following sizes:
1. The htmltable.length = 43,016 and
2. jason.tostring.length = 82,523.
I have been trying to use internet explorer 11 and Firefox.
However I am wondering if you can tell me the following:
1. Is there a broswer that allows the size of files that I need to display in the browser? If so, what browser and version would that be?
2. If the the size files I listed above are too large, is there a broswer that I can extend its limit on my workstation to meet my size limits? If so, what browser could I extend the size limits on and how would I accomplish that goal?
3. If I can not meet the size limits that I need, what browser and what version of that browser can I use to meet the highest size limits that I am looking for?
|
|
|
|
|
|
There are two places in the machine.config file where we can change the transaction time out settings
1. Added the following section in the machine.config
<configuration>
<system.transactions>
<machineSettings maxTimeout=”01:00:00″ />
</system.transactions>
</configuration>
2. modify the System.Transactions section in machine.config
<sectionGroup name="system.transactions" type="System.Transactions.Configuration.TransactionsSectionGroup, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null">
<section name="defaultSettings" type="System.Transactions.Configuration.DefaultSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" />
<section name="machineSettings" type="System.Transactions.Configuration.MachineSettingsSection, System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, Custom=null" allowDefinition="MachineOnly" allowExeDefinition="MachineOnly"/>
</sectionGroup>
Can anyone help me, what's the difference between these. Which is the best place to set the timeout settings
|
|
|
|
|
Hi,
I am facing an error of above mentioned subject, when I try to select the csv file of 3.9mb. Other way, when i select small file like 90kb then it works perfect..
See my following code:
if ($_FILES["file"]["error"] > 0)
{
echo "Problem in file! " . "<br>";
echo "Error: " . $_FILES["file"]["error"] . "<br>";
}
else
{
echo "Upload: " . $_FILES["file"]["name"] . "<br>";
echo "Type: " . $_FILES["file"]["type"] . "<br>";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>";
echo "Stored in: " . $_FILES["file"]["tmp_name"];
}
$this_filename = $_FILES["file"]["tmp_name"];
$csvfile = fopen($this_filename, 'r');
|
|
|
|
|
The error message is quite clear:
The content of $_FILES["file"]["tmp_name"] is empty.
So check your code where that is set. If it is set for small files but not for large ones there must be some conditional statement in your code that does not set the name in some cases.
|
|
|
|
|
|
Also - consider that the large file does not yet exist on the server when because your code migh be doing the file-copy asynchronously.
If this is the case, since it's not there yet, the name may not yet exist int the $_FILES["file"] array. You see how a large file may not be done whilst a small one will be transmitted very quickly.
If other attempts at finding the problem fail, add a delay to your application between the upload and the access steps and see if that fixes things.
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "As far as we know, our computer has never had an undetected error." - Weisert | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
Hi All,
I'm totally new to this forum, kindly bear me if this is not the right place to ask questions
I am trying to test a web service using SOAP UI 5.2.1.
Crated a SOAP project and added the WSDL but when I'm testing the service by entering the input parameters , I'm getting access denied error .
Have installed SOAP UI in the same server where web service is deployed .
Any help will be really appreciated
Here is the error log
-------------------------------------------------------------
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 3/27/2016 7:21:30 AM
Event time (UTC): 3/27/2016 1:51:30 AM
Event ID: 2cd853bc553340288de4f32f9426c2f1
Event sequence: 4
Event occurrence: 1
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/IntegrationServices-1-131035170822874864
Trust level: Full
Application Virtual Path: /IntegrationServices
Application Path: C:\Program Files\ICE\IntegrationServices\
Machine name: ICETest
Process information:
Process ID: 5536
Process name: w3wp.exe
Account name: NT AUTHORITY\SYSTEM
Exception information:
Exception type: HttpException
Exception message: Server cannot append header after HTTP headers have been sent.
Request information:
Request URL: http://ICETest/IntegrationServices/MI_EQUIP000.asmx
Request path: /IntegrationServices/MI_EQUIP000.asmx
User host address: 197.148.44.123
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\SYSTEM
Thread information:
Thread ID: 3
Thread account name: NT AUTHORITY\SYSTEM
Is impersonating: False
Stack trace: at System.Web.HttpResponse.AppendHeader(String name, String value)
at Meridium.Integration.Services.BasicAuthenticationModule.OnEndRequest(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Custom event details:
Regards,
Prasanth
|
|
|
|
|
From the error message:
Quote: Server cannot append header after HTTP headers have been sent. It seems, you are sending the data (or the credentials details) after the request/response has been sent.
Besides, from the content you provide it is not enough to know where you may generating two responses; a possible redirect after download or response generation. Read this thread for more on this: "Server cannot append header after http headers have been sent"[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
<b:loop values="data:post.backlinks" var="backlink">
<data:backlink.title>
<b:include data="backlink" name="backlinkDeleteIcon">
<data:post.timestamplabel> <data:backlink.timestamp>