Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 12 of 12
Search took 0.00 seconds.
Search: Posts Made By: joefawcett
Forum: Javascript How-To May 9th, 2008, 02:05 AM
Replies: 28
Views: 70,318
Posted By joefawcett
The page you showed should do it although if you...

The page you showed should do it although if you are using it as an include you don't need to generate the surrounding script tags, just the JavaScript.

--

Joe (Microsoft MVP - XML...
Forum: Javascript How-To May 8th, 2008, 04:04 PM
Replies: 28
Views: 70,318
Posted By joefawcett
<HTML><HEAD><TITLE>dbTest</TITLE> <SCRIPT...

<HTML><HEAD><TITLE>dbTest</TITLE>
<SCRIPT type="text/javascript" src="readDb.asp"></SCRIPT>
<script type="text/javascript">

function addNames()
{
var list =...
Forum: Javascript How-To May 8th, 2008, 02:50 PM
Replies: 28
Views: 70,318
Posted By joefawcett
I'm confused too. Originally you wanted to use...

I'm confused too.
Originally you wanted to use JavaScript server-side to connect to a database and use the data to populate a select list.
Now you could just create the options server-side but I...
Forum: Javascript How-To May 8th, 2008, 01:55 PM
Replies: 28
Views: 70,318
Posted By joefawcett
That looks right. Now if you've got rid of the...

That looks right. Now if you've got rid of the document.write stuff, which opens a new document, you should be able to use the names array.

--

Joe (Microsoft MVP - XML (http://joe.fawcett.name))
Forum: Javascript How-To May 8th, 2008, 01:05 PM
Replies: 28
Views: 70,318
Posted By joefawcett
Okay, so what does the html look like after it's...

Okay, so what does the html look like after it's created?

--

Joe (Microsoft MVP - XML (http://joe.fawcett.name))
Forum: Javascript How-To May 7th, 2008, 02:22 AM
Replies: 28
Views: 70,318
Posted By joefawcett
Firstly, as I said before, you must be clear in...

Firstly, as I said before, you must be clear in your mind which code executes on the server and which on the client. When you return names from the server-side code it doesn't go anywhere. You need...
Forum: Javascript How-To August 24th, 2007, 10:27 AM
Replies: 28
Views: 70,318
Posted By joefawcett
There are a number of options, you could just get...

There are a number of options, you could just get your server-side code to write the image paths into the JavaScript code. There is a long thread on this somewhere in the archives. You need to embed...
Forum: Javascript How-To August 24th, 2007, 03:46 AM
Replies: 28
Views: 70,318
Posted By joefawcett
You need to recognise the difference between...

You need to recognise the difference between server-side and client-side code. You have declared a <script type="text/javascript">b
element without a runat="server" attribute therefore the code runs...
Forum: Javascript How-To July 24th, 2007, 10:57 AM
Replies: 28
Views: 70,318
Posted By joefawcett
I'm not sure why you get the error message you...

I'm not sure why you get the error message you said but I can see at least two errors where you mix client-side and server-side code. The first is where you try to alert inside a server-side script...
Forum: Javascript How-To July 24th, 2007, 07:04 AM
Replies: 28
Views: 70,318
Posted By joefawcett
If the code is really in a server-side script...

If the code is really in a server-side script block then it cannot be an ASP page or, alternatively, ASP is disabled. Show the surrounding context if you're not sure.

--

Joe (Microsoft MVP -...
Forum: Javascript How-To September 9th, 2005, 12:40 PM
Replies: 28
Views: 70,318
Posted By joefawcett
You seem to be confusing the idea of client-side...

You seem to be confusing the idea of client-side versus server-side code and JavaScript versus VBScript. Your code is intended to run on the server, this means that it runs before the client loads...
Forum: Javascript How-To September 8th, 2005, 01:49 AM
Replies: 28
Views: 70,318
Posted By joefawcett
Is this running server-side or client-side? ...

Is this running server-side or client-side?
Aside from the fact that the path is not well-formed, unless "db" was a typo for "d:" then either, if server-side:
function dblookup()
{
var myConnect...
Showing results 1 to 12 of 12

 


All times are GMT -4. The time now is 02:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.