Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2006, 09:20 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;Where should I go from this point?
Where ever you want your code to go to.

Do you have other problems? If so what are they, whats your objective?

;;;But I still get line 24 error object expected
Did you run my code in my last post? There is no error there or code on line 24

If youre not running my code how am I supposed to know whats on your line 24. Create a
completely new page, paste the code from my last post in there and run it - no error.

Gone for lunch

Wind is your friend
Matt
 
Old January 19th, 2006, 09:24 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is the line 24 from the page source or the asp page?

Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm
 
Old January 19th, 2006, 09:31 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default

I did use your code sample.
If the source page, it says:
<body Onload="Javascript:EnableDisable();">
This section is part of an include file which I use for several asp pages.

showversea.asp?id=identity&keyword=keyword
Where should I go from this point?

THis is where the asp is supposed to do the work.
I want keyword=<%=Keyword%> and id to equal the value of the option in select.


Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm
 
Old January 19th, 2006, 11:05 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;Is the line 24 from the page source or the asp page?
With javascript from the page source, this is client side code. Research how client and sever side code works and is executed. Coding will become much easier for you and others trying to help...

;;;<body Onload="Javascript:EnableDisable();">
this is not in my code example - my one works error free and THERE IS NO CODE GIVING YOU TROUBLE ON LINE 24 (</html> tag only)

;;;Where should I go from this point?
Perhaps another person wont mind reading thru your short story, Identify your specific problems and follow your curve balls. Im done with this post. You need to learn how to use other peoples time better. Good luck.


Wind is your friend
Matt
 
Old January 20th, 2006, 03:31 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default

;;;this is not in my code example - my one works error free and THERE IS NO CODE GIVING YOU TROUBLE ON LINE 24 (</html> tag only)
Oh Matt you misunderstand me. I didn't say that the coding error was from your script.

I simply wanted to have the <%=Keyword%> in the URL.

Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm
 
Old January 20th, 2006, 07:24 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 240
Thanks: 0
Thanked 1 Time in 1 Post
Default

I just want to give an update if anyone is following this thread. I found the answer:

Code:
function go1(identity,keyword)
        {
url = 'showversea.asp?id=' + identity + '&keyword='  + keyword 
               //alert(bookSelect.action);
          //bookSelect.submit();
          alert(url);
        ifrVerse.location = url;
        }
    //-->
The problem was this:
I have set an alert. It said:
But when the iFrame opens it writes only this in the URL.

The second URL shows what the select name "id" is picking up "15418" from the option value. But it fails to pick up the "keyword" <%=Keyword%>. The page of dropdown is ASP-generated, in other words the ASP builds the dropdown from the result of the database table. Here is the section of the source:
Code:
    <script language="JavaScript" type="text/javascript">
    <!--
    function go1(identity,keyword)
        {
document.forms['bookSelect'].action = 'showversea.asp?id=' + identity + '&keyword='  + keyword 
               alert(bookSelect.action);
          bookSelect.submit();
        }
    //-->
    </script>

And
Code:
        
<form name="bookSelect" action="showversea.asp" method="get" target="ifrVerse">
<select name="id" size="10" style="width:200;" onchange="go1(document.forms['bookSelect'].id[document.forms['bookSelect'].id.selectedIndex].value,'brutish');">



                <option  value="14659">Psalms&nbsp;49:10</option>

                <option  value="15418">Psalms&nbsp;92:6</option>

                <option  value="15440">Psalms&nbsp;94:8</option>

                <option  value="16721">Proverbs&nbsp;12:1</option>

                <option  value="17254">Proverbs&nbsp;30:2</option>

                <option  value="18016">Isaiah&nbsp;19:11</option>

                <option  value="19210">Jeremiah&nbsp;10:8</option>


                <option  value="19216">Jeremiah&nbsp;10:14</option>

                <option  value="19223">Jeremiah&nbsp;10:21</option>

                <option  value="20230">Jeremiah&nbsp;51:17</option>

                <option  value="20976">Ezekiel&nbsp;21:31</option>

        </select>
To check it out use Internet Explorer:
http://i.domaindlx.com/wheelofgod/kj...s&optAction=on

Martial Law 9/11 Rise of the Police State is now available! Visit our Martial Law movie section for complete info (click here), or order now by clicking the button below or by calling 888-253-3139
http://www.infowars.com/martial_law_911.htm





Similar Threads
Thread Thread Starter Forum Replies Last Post
New and reorganized categories and forum topics jminatel Forum and Wrox.com Feedback 5 July 15th, 2010 06:05 AM
need sample code for read txt file lawsoncobol Access VBA 4 July 16th, 2007 08:30 AM
Easier page navigation of search results gs99 Forum and Wrox.com Feedback 0 February 2nd, 2007 09:38 PM
Read first!!!: Where is the code for a Wrox book jminatel All Other Wrox Books 0 March 17th, 2004 04:43 PM
Read first!!!: Where is the code for a Wrox book jminatel Wrox Book Feedback 0 September 15th, 2003 11:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.