|
I felt crazy when I was just doing some coding in my ASP file.
Actually I started my ASp coding without knowing anything and started telling myself as a web-programmer. The problem started here....
I was trying to put a dropdownlist in the page by storing some variables in a twodimensional array (the code is withing my <javascript> part). The thing worked fine. I was storing the values for the array hardcoded. One fineday, I wanted to change the data and descided to make it dynamic.. pickling from the database.
And I struck there. All the databse operations I was carrying around was with my ASP coding... ie. within my <% ... %> code. And the javascript in the ... code. Now, what I am trying makes me out the ASP code (database operation) into the <javascript> code. And that doesnt work.
Am I doing right?? Else, am I wrong basically?? I am getting crazy!!!
I was born intelligent Education ruined me!.
|
|
|
|
|
Im not 100% sure what you mean, neither am I experienced with ASP, but cant you use ASP to output the code for the dropdownlist?
' Get info from database here.
Response.Write("<select name=bla>" & vbCRLF);
Dim i As Integer
For i = 0 To 10
Response.Write("<option value=" & dbData[i] & ">" & dbData[i] & "</option>" & vbCRLF);
Next i
Response.Write("</select>" & vbCRLF);
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
Nnamdi Onyeyiri wrote:
Im not 100% sure what you mean
Even, I was confused a bit after reading mine again.... sorry for that.
I got ur code.... Thanks...
I was born intelligent Education ruined me!.
|
|
|
|
|
Hi, everyone!
I want to write a mini media player using Java language.
Where can I find some samples?
Cheers,
George
|
|
|
|
|
Hi all,
Please help
In my first card I ask for 3 user inputs. Where you want to start and end your journey and a time you want to travel after, in the format 12:25
<wml>
<card id="card1" title="Journey Planner">
<do type="accept" label="Next">
<go href="#card2">
Enter Start Station
Enter Destination Station
Enter Time
_The problem________________________________________________
In my second card I want to connect to a database in MicroSoft Access and use these variables in an Sql statement. I don't know the correct syntax for connecting to the database or for using the variables in my Sql statement. The Sql statement is incomplete, I just want to know how to use variables within it, setting them equal to something and saying something > $variable
________________________________
<card id="card2" title="Display results">
<%
Dim SqlJunk
'Create a connection odject
Set dbGlobalWeb = Server.CreateObject("ADODB.Connection")
'Database connection info and driver
rsGlobalWeb = "DRIVER={Microsoft Access Driver (*.mdb)};uid=; DBQ=" & Server.MapPath("\.....\database.mdb")
'Set an active connection to the Connection object
dbGlobalWeb.Open rsGlobalWeb
SqlJunk = "SELECT Start.StationName AS Start, Start.Time AS JourneyTime, Destination.StationName AS End FROM Station AS Start, Station AS End, Time AS JourneyTime WHERE Start.StationName LIKE '%" & $Start & "%' AND Destination.Station LIKE '%" & $End & "%' AND Start.Time > #" & $Statement & "#"
Set rsGlobalWeb = Server.CreateObject("ADODB.Recordset")
rsGlobalWeb.Open SqlJunk, dbGlobalWeb, 3
'Now I must display the results
<%=rsGlobalWeb("Start")%>
<%=rsGlobalWeb("JourneyTime")%>
<%=rsGlobalWeb("End")%>
%>
Damien
|
|
|
|
|
I wanted to setup a mailing list in the site. My friend suggested imail. And that is supported by my website too. So... I want to learn about it....
Any good tutorial/link for imail please!!!
I was born intelligent Education ruined me!.
|
|
|
|
|
1) Can anyone suggest a beginner's/advanced book on HTML?
2) What is the most compressible sound file that internet explorer supports (is there something better than mp3 that doesn't require people to pre-download codecs?)
|
|
|
|
|
1. You asked for opposite ends of the scale. Which do you want ? Personally I think beginners HTML is easy enough that you can just download some pages off the web ( right click and hit 'view source' ) and then play with then and see what you get. But there are plenty of online guide. The htmlgoodies site is good for beginners.
2. I believe wma is smaller.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
|
I seem to remember reading that DIV tags are much better than using TABLES. Is this true? And if so, does anyone know of a beginners guide to them, just took a look at a site that uses them, and they seem a little evil at first glance.
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
Nnamdi Onyeyiri wrote:
I seem to remember reading that DIV tags are much better than using TABLES. Is this true?
Yes and No. Sometimes, always and not in some cases.
You have the right stick, but the wrong end of it. I could explain it to you but that would mean a ten page post.
Rather: The WestCiv Free HTML & CSS Course[^]
That is an excellent course for HTML and CSS beginners. It takes you right from the very basics of HTML through to mid-level CSS.
You may get bored or think you know all the stuff they teach in the first few chapters, but I must insist you perservere and pretend you know nothing about HTML. What it teaches you is very valuable; Good HTML structure. Good presentation through CSS. Seperation of the two. When to use TABLEs (for tabular data) and DIVs (for layout, columns etc.)
If you find you are using TABLEs for layout then you need that course. If you find yourself trying to present tabular data using DIVs, then you need that course.
And if you have any specific questions, just ask here and I will answer as best I can.
Paul Watson Bluegrass Cape Town, South Africa Shog9 wrote:
Everybody just wants to be naked and famous, Paul.
|
|
|
|
|
I have to Write client and server applications to play human-vs-computer Tic-Tac-Toe ("noughts and crosses") across a network.
The server will be a computerised player, and the client will be the front end the human player sees. The client and server applications will communicate via sockets
But the problem is that ia have to write this in java awt.
I was just wondering does any 1 know any good sites for java awt or if any one has seen the source code for the game
thanks Stephen
|
|
|
|
|
I want to create the page with the dropdown list. Where the change in the country-list will display only the states for that country in the state-list. Selecting the state-list will change the city in the city-list.
I want to pisk the data from the database....
Any idea please??
I am not looking for the 'answer'... but a logic!
I was born intelligent Education ruined me!.
|
|
|
|
|
It's fairly simple. You need three events, either as events in ASP.NET, or through post data in classic ASP. They tell you which item has changed, so you grab the data from the changed item, and use it to form a query to populate the items below it ( i.e. change country changes both states and cities, change state changes only cities ).
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
The method I followed was....
On the country's select-onchange.... i submited the page with the country code. The states/city refreshed... Similarly it went on and on... But the 'selected' part in my list is always showing as the first-item-of the list... how to change it.....
I am expecting a simple src code to play around with!
I was born intelligent Education ruined me!.
|
|
|
|
|
SPS wrote:
I am expecting a simple src code to play around with!
I thought you said you wanted the logic, not the code !! I can't give you code, I don't know what you're using. But to fix this problem, put the selected indexes into hidden fields, and then use that data in your posted form to make sure the right option is selected in each drop list.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Christian Graus wrote:
I can't give you code
No problem... if I understand the logic... no use in getting the src for me!!
Christian Graus wrote:
I don't know what you're using
ASP & MS Access
Christian Graus wrote:
put the selected indexes into hidden fields, and then use that data in your posted form to make sure the right option is selected in each drop list
This is where I am little confused... to be clear.. I dont know!!
I was born intelligent Education ruined me!.
|
|
|
|
|
OK - well now that I know you're using 'classic' ASP, I can be more specific.
<input type=hidden value=<%Request.QueryString("statesel")%> value="statesel">
Do that three times, and put the three selected values on your command line when you post to yourself. Then you need only pull those values out of the form and use them when you build your select, I believe the syntax is <option selected>New Jersey</option>. So you insert the word selected into the output of the option if the index (or value, whichever you prefer) matches the one you had previously and therefore posted to yourself and stuck into your hidden field.
I haven't done this stuff for a bit, so some syntax may be wrong, but that is how it would be done.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
Thanks....
I guess... if the things work... I will finish this stuf.... ELSE... will meet u with further questions!
I was born intelligent Education ruined me!.
|
|
|
|
|
No worries. If you ask while I am at work, I'll have dozens of examples to check to make sure my syntax is correct, so don't hesitate to yell if you need to.
Christian
No offense, but I don't really want to encourage the creation of another VB developer.
- Larry Antram 22 Oct 2002
C# will attract all comers, where VB is for IT Journalists and managers - Michael
P Butler 05-12-2002
Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not
as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
|
|
|
|
|
I want to check that whether i am connected to
internet on click event of a link.
Actually the whole website is running through a CD,but
few links take user to server. I want if user click on
this particular link then through javascript i check
whether my machine is connected to internet or not.
If connected then simply go to that location otherwise
display a popup window with message that machine is not
connected to internet.
Please reply soon.
Thanks
Imran
|
|
|
|
|
Not a reply to your question.... but just asking out of interest.... Did you find a solution for your request?? If yes.. can you share with us here??
I was born intelligent Education ruined me!.
|
|
|
|
|
i dont think you can do that in straight javascript.
you could plug an applet into your page , and then you have numerous ways of checking internet connectivity via JAVA.
todo....
:: insert inpirational text here ::
|
|
|
|
|
how can i pass parameters to java Applet by HTML form , i have to input parameters through HTML Form text fields n then pass it to Applet. any body can help me this regard, mail me
|
|
|
|
|