Get a handle on the form element and store it in a variable called "file".
Send the handle to the form element to the server.
I'd suggest that what you want to do is send the file to the server rather than the handle to the form element. Unfortunately there is no easy way to do file-system...
Get rid of the this. at the start. The function changeLinkStyleOn is not a member function of the anchor tag. Same goes for your onClick and onMouseOut handlers.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
You've only got one post to your name, where and when did you post it in the CSS forums?
This is a CSS issue and easily resolved without resorting to javascript tricks.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet...
Permission denied sounds like you're attempting cross-domain scripting which is prevented by the browser's security model.
Are both your container page and the page in your iframe coming from the same domain?
Never be afraid to share your dreams with the world.
There's nothing the world loves...
onclick="top.yourFunctionName(this.href)"
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
theValue = selObj.options[selObj.selectedIndex][!].value[/!];
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
How many machines have you tried it on... you may just have some faulty ram.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
I know a fellow who's surname is Allbutt.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
Your text file has a body tag?
Probably not. Which is why it's not able to be recognised by the document object model.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
I'll assume there's a reasonable explanation as to why you wouldn't simply make the iframe bigger or the picture smaller.
Use the window.scrollBy(intPixelsX, inPixelsY) method to scroll your frame.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than...
Can you periodically check the .src attribute of the iframe. It should change when the form is submitted.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
What have you tried so far that isn't working?
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
No, it would be done as per my example, storing an array as the value, using array notation.
Cut between the lines:
-----------------------------------------------
myImg[mi] = ['pix' + count, 'comment' + count];
-----------------------------------------------
Never be afraid to share your...
Two dimensional arrays are not explicitly declared anyhow in JS. You can have an array of anything you like... including an array of arrays.
So to store a count, an image name and a comment all in one array you could have something like:
var mainArray = new Array();
mainArray[0] = [1...
If you want to read the value of something, read it's value property, not it's innerHTML property.
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
How are you planning on writing javascript in the content page if you don't have access to it?
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
var names = new Array();
for(var i = 1; i <= 5; i++){
var fieldVal = frmOpt1["opt1N" + i].value;
if(fieldVal != ""){
names[names.length] = fieldVal;
}
}
var wholestring = names.join(",");
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the...
The confirm function is what you are after.
Returning the value of a call to confirm in your form's onsubmit handler will either stop the form submission if the user selects Cancel - in which case they can edit the field and try again - or allow the form to be submitted if they select OK...
No sweat, happy to help, even happier if you learn something along the way :)
Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
Webflo
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.