Click here to Skip to main content
15,923,142 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Problem calling batch file in ASP Pin
J4amieC16-Dec-04 22:25
J4amieC16-Dec-04 22:25 
GeneralRe: Problem calling batch file in ASP Pin
ScottSingleton21-Dec-04 8:42
ScottSingleton21-Dec-04 8:42 
GeneralJavascript Encoding Pin
afronaut16-Dec-04 11:01
afronaut16-Dec-04 11:01 
GeneralRe: Javascript Encoding Pin
alex.barylski16-Dec-04 14:50
alex.barylski16-Dec-04 14:50 
Generalvisibility in css and javascript Pin
LarrySG16-Dec-04 10:38
LarrySG16-Dec-04 10:38 
GeneralRe: visibility in css and javascript Pin
afronaut16-Dec-04 10:54
afronaut16-Dec-04 10:54 
GeneralRe: visibility in css and javascript Pin
alex.barylski16-Dec-04 14:44
alex.barylski16-Dec-04 14:44 
Generaljavascript form quirks Pin
adermard16-Dec-04 8:38
adermard16-Dec-04 8:38 
I just ran into the stranges thing in javascript. I was trying to set the action attribute on and HTML tag dynamically. I needed to attach the value of local variable to the request string.

There are quite logical code bits that work in Mozilla FireFox but fail to work in Internet Explorer.

I had a page similar to this:






I tried to change the submit action on my form:

function func()
{
document.myform.setAttribute("action", "foobar.asp");
}

This strange thing is that even though the action for the form is an attribute of the FORM tag, you cannot affect it that way.

You have to do this:
document.myform.action = "foobar.asp";

But this doesnt work in Internet Explorer because the INPUT node for the submit button is named action it all gets confused. It works fine in Mozilla.

The reason its all messed up is because somebody decided to define this particular part of the language to allow you to access attributes with the dot syntax. So it must get confused by the statement "document.myform.action" because it doesnt know if you mean the action attribute or form INPUT button.

Is there a reason why action isn't accessible via the standard attribute methods in Internet Explorer on the FORM tag?
Generalasp pages expire Pin
cmarmr16-Dec-04 4:03
cmarmr16-Dec-04 4:03 
GeneralRe: asp pages expire Pin
contactsonia16-Dec-04 18:14
contactsonia16-Dec-04 18:14 
GeneralRe: asp pages expire Pin
cmarmr17-Dec-04 3:43
cmarmr17-Dec-04 3:43 
GeneralSet html target value dynamcially in framed htm page which sources aspx pages. Pin
Sue Oates15-Dec-04 23:43
Sue Oates15-Dec-04 23:43 
GeneralHelp - Calling a batch file Pin
Its due when15-Dec-04 13:09
Its due when15-Dec-04 13:09 
GeneralRe: Help - Calling a batch file Pin
Colin Angus Mackay15-Dec-04 13:29
Colin Angus Mackay15-Dec-04 13:29 
GeneralRe: Help - Calling a batch file Pin
Its due when15-Dec-04 13:44
Its due when15-Dec-04 13:44 
Questionhow to support asp??? Pin
Opa Knack15-Dec-04 9:57
Opa Knack15-Dec-04 9:57 
GeneralSending data back to referer Pin
mtone15-Dec-04 9:26
mtone15-Dec-04 9:26 
GeneralRe: Sending data back to referer Pin
aplope17-Dec-04 7:36
aplope17-Dec-04 7:36 
GeneralReporting Services : custom parameters Pin
Member 150632215-Dec-04 5:39
Member 150632215-Dec-04 5:39 
GeneralStrange behaviour of ISAPI Filter; OnUrlMap called multiple time after returning SF_STATUS_REQ_FINISH Pin
qaiser7315-Dec-04 0:38
qaiser7315-Dec-04 0:38 
QuestionWhy different results? Pin
rgoyal14-Dec-04 20:20
rgoyal14-Dec-04 20:20 
AnswerRe: Why different results? Pin
raouls14-Dec-04 21:43
raouls14-Dec-04 21:43 
GeneralRe: Why different results? Pin
rgoyal15-Dec-04 21:54
rgoyal15-Dec-04 21:54 
GeneralExporting different language of Portal Site Pin
Firas Rashid14-Dec-04 19:52
Firas Rashid14-Dec-04 19:52 
GeneralAdd a search help Pin
Charlotte Price14-Dec-04 3:49
Charlotte Price14-Dec-04 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.