|
Position the image appropriately and set it to hidden initially. Then on the timer just show it.
<div id='imageContainer'>
<img id='myImage' src='...' />
</div>
#imageContainer
{
add appropriate css
}
$(document).ready(function()
{
$("#myImage").hide();
});
setTimeout(function(){ $("#myImage").show() });
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
If you know at page construction time where it should go, just position it in the HTML and only unhide it in the timeout, as Mark says.
If not, look up the position of the target control and do some arithmetic to position your image appropriately relative to it.
Either way, it is an overlay so you want to use position:absolute and the top and left (or right) CSS properties, not try a hack with hspace/vspace.
|
|
|
|
|
Thanks for all your help.. I got solution for the query, i was facing. 
|
|
|
|
|
Hi all,
I have found a jQuery sample, and found the following syntax. But I have no idea about what it is really doing. Can anyone of you comment on it?
var items = $("#" + element[0].id + "Content ." + element[0].id + "Image");
Thanks in advance
I appreciate your help all the time...
CodingLover
|
|
|
|
|
It is trying to form a selector such as
"#myElementContent .myElementImage"
Honestly, if you can't interrupt this you are going to have a great deal of difficulty in this career.
I know the language. I've read a book. - _Madmatt
modified on Tuesday, August 9, 2011 9:01 AM
|
|
|
|
|
Mark Nischalke wrote: Honestly, if you can't interrupt interpret this you are going to have a great deal of difficulty in this career.
FTFY
—MRB
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
Guess the spell checker was interrupted and didn't interpret it correctly
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Mark Nischalke wrote: Honestly, if you can't interrupt interpret this you are going to have a great deal of difficulty in this career.
Be considerate to beginners, not everyone can be a pro like you 
|
|
|
|
|
This is a beginners task and one should know how to interpret it. It is well documented.
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
As somebody who just started playing with jQuery as a way to solve a particular cross-domain scripting problem, I think well documented might be pushing it. It's documented.
|
|
|
|
|
Mark got it almost right except that there is a space after content.
"#myElementContent .myElementImage"
This selector will select all elements that have their id attribute set to myElementContent and have an entry of myElementImage in their class attribute. This will be so if element[0].id == "myElement" .
You might also find this an interesting read: http://api.jquery.com/category/selectors/[^].
Cheers!
—MRB
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
Manfred R. Bihy wrote: there is a space after content
Corrected
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Description:
Select Element with Id like txtUserContent with Class Name is txtUserImage
Interpretation:
(#txtUserContent .txtUserImage)
Legend:
# getting element by ID
. getting element by ClassName
Thanks,
Imdadhusen
sunaSaRa Imdadhusen
+91 99095 44184
|
|
|
|
|
Hi every body,
ANy one tried implementing search functionality in Ext.ux.maximgb.treegrid.GridPanel .?
i m using treegrid i need to implement search functionality..
as i m new to ext js dont know how to proceed.
any one know how to implement.?
if any one have tried it then plz post code or the plugin (as grid-filter plugin I have).
Thanks
|
|
|
|
|
I have a control like this:
<input type="file" value="Open File" id="openfile"/>
and I need the full path for the selected file. In IE, I can get this, but in Firefox it returns only the filename part. Is there a way to get the full path?
I know somebody gonna say I don't need it to upload a file, but I'm not uploading a file to a remote server and I really do need the local path. My page is passing the local path to a locally running self-hosted WCF server that then passes the path to another application with will actually load the file. Without the full path, the application will treat the path as relative to whatever its current directory is, which obviously fails most of the time.
|
|
|
|
|
|
Thanks for the reply, but I think that is trying to do the opposite of what I'm trying to do. Your links are looking to remove the path from IE so that you have only the filename. I want to do the opposite, get the path in Firefox.
|
|
|
|
|
Hi everybody,
I develop a website with c# langage and Javascrip. It is opened with IE navigator well but in FireFox, most pages are not opened. How can I make my JS code compatible with Firefox navigator?
ty
|
|
|
|
|
Some of the stuff that interacts with the DOM, window, document and events are handled differently from browser to browser. You could build browser switches into your code to handle each situation differently for each browser you intend to support. You could just as well resort to a crossbrowser compatible javascript framework like jQuery[^] for instance which is my favorite.
On the following site you can find a list of the more or less well known Javascript Crossbrowser Frameworks/Libraries[^].
Best Regards,
—MRB
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
modified on Thursday, August 4, 2011 11:05 AM
|
|
|
|
|
Hi Manfred,
I work with the EXT JS Framework, but some instructions differ from browser to browser.So if i develop a version of my application for each browser, that will be sooooo expensive in the two sides time and code.
ty
|
|
|
|
|
Hi Pierre,
what instructions are you talking about? Surely it must be something you're doing in plain javascript and not the ExtJS framework. Please give and example and try to explain what difficulties you are experiencing in regard to browser dependant coding.
À bientôt !
"With sufficient thrust, pigs fly just fine."
Ross Callon, The Twelve Networking Truths, RFC1925
|
|
|
|
|
Manfred R. Bihy is 100% correct and your issue is one of the reasons why these frameworks are so popular, they handle the browser specific behaviours so we can focus on coding the application/webpage.
Chris J
www.redash.org
|
|
|
|
|
I've made a <form> with an <input> for a new category. Once the category is entered I need to enter an unknown number of sub-items.
Can anyone help me with a javascript that enables me to click a [+] button that generates a new (html) input line like this: [+] Next item : <input name="sub-item" value="sub_item[]" />.
The onClick [+] button should at least have one parameter that enables me to change the input type into e.g. select
|
|
|
|
|
|
Thanks a lot. It was quite helpful
|
|
|
|