Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > nearlynewbie - whats wrong here

Reply
Thread Tools

nearlynewbie - whats wrong here

 
 
please-answer-here
Guest
Posts: n/a
 
      06-18-2005
done 100's of this before and have been sterring and sterring at the code

response.write( "<form name=""fundneordrer"" action=""scandia.asp""
method=""POST"" onSubmit=""return chk_sel_ordre();""> ")
response.write("<input type=""submit"" name=""hentordre"" value=""vis
ordre"">")



WHY is it that chk_sel_ordre never gets executed?


 
Reply With Quote
 
 
 
 
Jc
Guest
Posts: n/a
 
      06-18-2005
please-answer-here wrote:
> done 100's of this before and have been sterring and sterring at the code
>
> response.write( "<form name=""fundneordrer"" action=""scandia.asp""
> method=""POST"" onSubmit=""return chk_sel_ordre();""> ")
> response.write("<input type=""submit"" name=""hentordre"" value=""vis
> ordre"">")
>
>
>
> WHY is it that chk_sel_ordre never gets executed?


Looks like you're missing the closing form tag, assuming doubling up
quotes is a valid technique for escaping quote characters in what I
assume is VB code.

 
Reply With Quote
 
 
 
 
please-answer-here
Guest
Posts: n/a
 
      06-18-2005
Jc wrote:
> please-answer-here wrote:
>> done 100's of this before and have been sterring and sterring at the
>> code
>>
>> response.write( "<form name=""fundneordrer"" action=""scandia.asp""
>> method=""POST"" onSubmit=""return chk_sel_ordre();""> ")
>> response.write("<input type=""submit"" name=""hentordre""
>> value=""vis ordre"">")
>>
>>
>>
>> WHY is it that chk_sel_ordre never gets executed?

>
> Looks like you're missing the closing form tag,


Noop. the code above was snipped to exclude all the input/select details,
but the </form> is included in the original script/code

> assuming doubling up quotes is a valid technique for escaping quote
> characters in what I
> assume is VB code.


Yes is actually a asp file with VB scripts


 
Reply With Quote
 
Hywel Jenkins
Guest
Posts: n/a
 
      06-18-2005
In article <42b3b61c$0$78279$ >,
d says...
> done 100's of this before and have been sterring and sterring at the code
>
> response.write( "<form name=""fundneordrer"" action=""scandia.asp""
> method=""POST"" onSubmit=""return chk_sel_ordre();""> ")
> response.write("<input type=""submit"" name=""hentordre"" value=""vis
> ordre"">")
>
>
>
> WHY is it that chk_sel_ordre never gets executed?


Why not post a URL to the actual code, including the pertinent code,
rather than a small snippet of the ASP?

--
Hywel

Kill the Crazy Frog
http://www.petitiononline.com/crzyfrg/
 
Reply With Quote
 
Kimmo Laine
Guest
Posts: n/a
 
      06-18-2005
"please-answer-here" <> kirjoitti
viestissä:42b3ec74$0$78279$ city.dk...
> Jc wrote:
>> please-answer-here wrote:
>>> done 100's of this before and have been sterring and sterring at the
>>> code
>>>
>>> response.write( "<form name=""fundneordrer"" action=""scandia.asp""
>>> method=""POST"" onSubmit=""return chk_sel_ordre();""> ")
>>> response.write("<input type=""submit"" name=""hentordre""
>>> value=""vis ordre"">")
>>>
>>>
>>>
>>> WHY is it that chk_sel_ordre never gets executed?

>>
>> Looks like you're missing the closing form tag,

>
> Noop. the code above was snipped to exclude all the input/select details,
> but the </form> is included in the original script/code
>
>> assuming doubling up quotes is a valid technique for escaping quote
>> characters in what I
>> assume is VB code.

>
> Yes is actually a asp file with VB scripts



Instead of showing the asp source code, could you post what it generates?
Also, you didn't mention a) if the form is submitted (so that the function
is just not executed) or does the submitting fail also and b) can you launch
the function by other methods, for example <a href="#" onClick="return
chk_sel_ordre();">Launch it</a>.

--
"I am pro death penalty. That way people learn
their lesson for the next time." -- Britney Spears




 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      06-18-2005
please-answer-here wrote on 18 jun 2005 in comp.lang.javascript:

> Jc wrote:
>> please-answer-here wrote:
>>> done 100's of this before and have been sterring and sterring at the
>>> code
>>>
>>> response.write( "<form name=""fundneordrer"" action=""scandia.asp""
>>> method=""POST"" onSubmit=""return chk_sel_ordre();""> ")
>>> response.write("<input type=""submit"" name=""hentordre""
>>> value=""vis ordre"">")
>>>
>>>
>>>
>>> WHY is it that chk_sel_ordre never gets executed?

>>
>> Looks like you're missing the closing form tag,

>
> Noop. the code above was snipped to exclude all the input/select
> details, but the </form> is included in the original script/code
>
>> assuming doubling up quotes is a valid technique for escaping quote
>> characters in what I
>> assume is VB code.

>
> Yes is actually a asp file with VB scripts


[ASP-]VB code is OT in this Javascript NG!

However, try this, for the same ASP result ASP-language independent:

%>
<form name='fundneordrer' action='scandia.asp'
method='POST' onSubmit='return chk_sel_ordre();'>
<input type='submit' name='hentordre' value='vis ordre'>
<%

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

 
Reply With Quote
 
please-answer-here
Guest
Posts: n/a
 
      06-18-2005
Hywel Jenkins wrote:
> In article <42b3b61c$0$78279$ >,
> d says...
>> done 100's of this before and have been sterring and sterring at the
>> code
>>
>> response.write( "<form name=""fundneordrer"" action=""scandia.asp""
>> method=""POST"" onSubmit=""return chk_sel_ordre();""> ")
>> response.write("<input type=""submit"" name=""hentordre""
>> value=""vis ordre"">")
>>
>>
>>
>> WHY is it that chk_sel_ordre never gets executed?

>
> Why not post a URL to the actual code, including the pertinent code,
> rather than a small snippet of the ASP?


got your point, but is was meant to be easier than look at 100 lines of
code, which was irrelevant to the problem.

- http:90eren.homeip.net/test
- click "søgning"
- click "find ordre"
show source (the code is near the end)


 
Reply With Quote
 
please-answer-here
Guest
Posts: n/a
 
      06-18-2005
Kimmo Laine wrote:
> "please-answer-here" <> kirjoitti
> viestissä:42b3ec74$0$78279$ city.dk...
>> Jc wrote:
>>> please-answer-here wrote:
>>>> done 100's of this before and have been sterring and sterring at
>>>> the code
>>>>
>>>> response.write( "<form name=""fundneordrer""
>>>> action=""scandia.asp"" method=""POST"" onSubmit=""return
>>>> chk_sel_ordre();""> ") response.write("<input type=""submit""
>>>> name=""hentordre"" value=""vis ordre"">")
>>>>
>>>>
>>>>
>>>> WHY is it that chk_sel_ordre never gets executed?
>>>
>>> Looks like you're missing the closing form tag,

>>
>> Noop. the code above was snipped to exclude all the input/select
>> details, but the </form> is included in the original script/code
>>
>>> assuming doubling up quotes is a valid technique for escaping quote
>>> characters in what I
>>> assume is VB code.

>>
>> Yes is actually a asp file with VB scripts

>
>
> Instead of showing the asp source code, could you post what it
> generates? Also, you didn't mention a) if the form is submitted (so
> that the function is just not executed) or does the submitting fail
> also and b) can you launch the function by other methods, for example
> <a href="#" onClick="return chk_sel_ordre();">Launch it</a>.


a) Yes the form is submitted (which is a problem, since I only wants to
submit when the user have made a selection)
b) No
c) Yes; without a problem


 
Reply With Quote
 
please-answer-here
Guest
Posts: n/a
 
      06-18-2005
Kimmo Laine wrote:
> "please-answer-here" <> kirjoitti
> viestissä:42b3ec74$0$78279$ city.dk...
>> Jc wrote:
>>> please-answer-here wrote:
>>>> done 100's of this before and have been sterring and sterring at
>>>> the code
>>>>
>>>> response.write( "<form name=""fundneordrer""
>>>> action=""scandia.asp"" method=""POST"" onSubmit=""return
>>>> chk_sel_ordre();""> ") response.write("<input type=""submit""
>>>> name=""hentordre"" value=""vis ordre"">")
>>>>
>>>>
>>>>
>>>> WHY is it that chk_sel_ordre never gets executed?
>>>
>>> Looks like you're missing the closing form tag,

>>
>> Noop. the code above was snipped to exclude all the input/select
>> details, but the </form> is included in the original script/code
>>
>>> assuming doubling up quotes is a valid technique for escaping quote
>>> characters in what I
>>> assume is VB code.

>>
>> Yes is actually a asp file with VB scripts

>
>
> Instead of showing the asp source code, could you post what it
> generates? Also, you didn't mention a) if the form is submitted (so
> that the function is just not executed) or does the submitting fail
> also and b) can you launch the function by other methods, for example
> <a href="#" onClick="return chk_sel_ordre();">Launch it</a>.


a) Yes the form is submitted without a problem (which IS the problem, since
I only wants to submit when an item has been selected)
b) No
c) Yes without any problems


 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      06-18-2005
please-answer-here wrote:

> - http:90eren.homeip.net/test


Do you mean http://90eren.homeip.net/test ? (the two slashes are quite
important)

It gives an IIS 404 error page ... in what looks like Swedish.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Positioning content with div tags - whats wrong here? Randell_D Javascript 14 12-25-2007 03:46 PM
Whats wrong here... Matthew ASP .Net 2 12-02-2005 11:14 PM
whats wrong here Chris Geerdink Javascript 3 06-28-2004 10:30 PM
Re: Whats going on here lynn cardin Computer Support 2 04-22-2004 04:45 PM
whats wrong here? iz0nlee Javascript 9 07-13-2003 11:06 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57