| | |
image placement
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: May 2008
Posts: 113
Reputation:
Solved Threads: 4
so im really getting into the ajax crowd, though i dont strictly use ajax (no xml) i like the functionality of calling server side scripts for dynamic php functions...
anyway i have a few images in this form ive made that i would like to be placed correctly
let me explain....
I have a form input..
<input type='text' name='provided' id='prov' onkeyup='checker(cariables)'>
then i have a div:
<td><div id='prov1'></div></td>
the ajax function calls the variables in the onkeyup section and based on the result displays an image.
so the problem is the image is not displaying in the right size OR the right place in the div... if i use valign='bottom' it doesnt change, which is the problem, instead of aligning with the bottom of the table cell it stays above, and makes the table all messed up, and messes with my layout...
the code for the images is:
so im wondering if anyone can even understand my problem, let alone help me...
thank you...
~Ryan
anyway i have a few images in this form ive made that i would like to be placed correctly
let me explain....
I have a form input..
<input type='text' name='provided' id='prov' onkeyup='checker(cariables)'>
then i have a div:
<td><div id='prov1'></div></td>
the ajax function calls the variables in the onkeyup section and based on the result displays an image.
so the problem is the image is not displaying in the right size OR the right place in the div... if i use valign='bottom' it doesnt change, which is the problem, instead of aligning with the bottom of the table cell it stays above, and makes the table all messed up, and messes with my layout...
the code for the images is:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<img src='../images/loading.gif' align='center' valign='bottom' width='16' height='16' />
so im wondering if anyone can even understand my problem, let alone help me...
thank you...
~Ryan
Do you geek alone?
<<TimmCo>> Custom Computers
~Executive
<<TimmCo>> Custom Computers
~Executive
Try this first on the image that corresponds to your ajax call:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<img src='../images/loading.gif' style="display : block; width : auto; height : auto; margin : 0 auto;" />
•
•
Join Date: May 2008
Posts: 113
Reputation:
Solved Threads: 4
that didnt change the placement
so i showed the borders of the table and its actually making the talbe bigger and putting space below the image that shouldnt be there, so it might be adding a break below the image, but whatever its doing it does it even if i dont use the ajax (place image directly in html)
so i showed the borders of the table and its actually making the talbe bigger and putting space below the image that shouldnt be there, so it might be adding a break below the image, but whatever its doing it does it even if i dont use the ajax (place image directly in html)
Do you geek alone?
<<TimmCo>> Custom Computers
~Executive
<<TimmCo>> Custom Computers
~Executive
•
•
Join Date: May 2008
Posts: 113
Reputation:
Solved Threads: 4
actually, i got it, the problem was that the entire code looked like this:
that was ONE line of the form
it goes like:
name - input - image - input
its all in a table and the problem was this:
the non breaking space in the code is not in the div tag, so its still in the code after the image is inserted..... lol
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<table cellpadding='0' cellspacing='0' border='1'><tr><td>#2: <td><input type='text' value='0' maxlength='7' size='7' name='required_item_entry_2' id='rie2' onkeyup='checker("rie2", "rie2-1", "world", "items", "entry", "exists", "0")'> <td cellpadding="0" cellspacing="0"><div id='rie2-1'></div> <td><input type='text' value='0' maxlength='7' size='7' name='required_item_amount_2'></td></tr></table><br>
that was ONE line of the form
it goes like:
name - input - image - input
its all in a table and the problem was this:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
<td cellpadding="0" cellspacing="0"><div id='rie2-1'></div> <td>
the non breaking space in the code is not in the div tag, so its still in the code after the image is inserted..... lol
Do you geek alone?
<<TimmCo>> Custom Computers
~Executive
<<TimmCo>> Custom Computers
~Executive
![]() |
Similar Threads
- How to create image maps that look so nice... (Graphics and Multimedia)
- Dynemic Image On Crystal Report 8.5 from Access for VB 6 (Visual Basic 4 / 5 / 6)
- Wrapping text around odd-shaped image (HTML and CSS)
- Image capture into HTML/IE and Oracle databases... (Oracle)
- adobe image problem (Graphics and Multimedia)
- cant use acronis true image on windows xp (Windows NT / 2000 / XP)
- edit text on a gif image in photoshop (Graphics and Multimedia)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: ajax slider
- Next Thread: Need help with getDOCTYPE() function
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
ajax ajaxexample ajaxjspservlets array autoplay blackjack browser captchaformproblem checkbox child class close codes date debugger dependent developer disablefirebug dom editor element embed engine events explorer ext file firefox flash form forms game gears getselection google gxt hiddenvalue highlightedword hint html ie7 ie8 iframe internet java javascript javascripthelp2020 jquery jsf jsfile jsp jump libcurl maps marquee masterpage math matrixcaptcha media mysql object onerror onmouseoutdivproblem onreadystatechange parent passing paypal pdf php player position post programming rated redirect runtime safari scriptlets scroll search security session shopping size software solutions star stars stretch synchronous toggle tweet unicode variables web webkit webservice window wysiwyg \n





