Re: [PHP] A two flavored post

2007-10-15 Thread Nathan Nobbe
i was just working on some stuff and remembered how ive handled a problem like this in the past. the issue you have to wrestle w/ is the anchor tag will perform its normal behavior after the onclick handler has finished executing. basically, onclick is just part of the process for the anchor tag.

Re: [PHP] A two flavored post

2007-10-12 Thread Dan
In addition to what everyone else has suggested you probably also want to have your page work for people without javascript enabled, or the handicapped. One way you could do this is have a div and the PHP generates the div where you would put the link, with code for the link inside with the PH

Re: [PHP] A two flavored post

2007-10-07 Thread tedd
ALSO: can be altered to be: What exactly do you need to do, anyways? Maybe there'll be some better way to do this. I'm sure there is a better way. I was just trying to get a user's selection (in an CMS I'm developing) without a refresh. Something like this: http://www.webbytedd.com/c/

Re: [PHP] A two flavored post

2007-10-06 Thread heavyccasey
ALSO: can be altered to be: What exactly do you need to do, anyways? Maybe there'll be some better way to do this. On 10/6/07, tedd <[EMAIL PROTECTED]> wrote: > At 1:49 PM -0400 10/6/07, Robert Cummings wrote: > >On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: > > > Unfortunately, my solutio

Re: [PHP] A two flavored post

2007-10-06 Thread tedd
At 1:49 PM -0400 10/6/07, Robert Cummings wrote: On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: > Unfortunately, my solution isn't unobtrusive. However, I couldn't see a way to make it so. Why not? I'm guessing because you need to the link to have the JavaScript variable in it. If this i

Re: [PHP] A two flavored post

2007-10-06 Thread Robert Cummings
On Sat, 2007-10-06 at 13:41 -0400, tedd wrote: > At 1:26 PM -0400 10/5/07, Nathan Nobbe wrote: > >strange; i missed that when i put it together; my bad, it was late. > >here is a revision that works. > > > > > > > > > > window.onload = function() { > > var

Re: [PHP] A two flavored post

2007-10-06 Thread tedd
At 1:26 PM -0400 10/5/07, Nathan Nobbe wrote: strange; i missed that when i put it together; my bad, it was late. here is a revision that works. window.onload = function() { var someLink = document.getElementById('someLink'); someLink.hr

Re: [PHP] A two flavored post

2007-10-06 Thread tedd
At 12:58 PM -0400 10/5/07, Daniel Brown wrote: function writeHREF(value,title) { var url = "http://www.crusar.org/test.php";; var currentTime = new Date(); var month = currentTime.getMonth(); var day

Re: [PHP] A two flavored post

2007-10-05 Thread Robert Cummings
On Fri, 2007-10-05 at 19:19 +0200, Aleksandar Vojnovic wrote: > This might be a way to do it: > > *Example 1* > > function appendMeBaby(aVar){ > self.location.href = 'img.php?s=' + aVar + > '&someOtherVar=itIsMeTheValue'; > } > > Click here > > *Example 2* > > function appendMeBaby(aVar,

Re: [PHP] A two flavored post

2007-10-05 Thread Nathan Nobbe
strange; i missed that when i put it together; my bad, it was late. here is a revision that works. window.onload = function() { var someLink = document.getElementById('someLink'); someLink.href += "&anotherVar=8"; alert(doc

Re: [PHP] A two flavored post

2007-10-05 Thread Aleksandar Vojnovic
This might be a way to do it: *Example 1* function appendMeBaby(aVar){ self.location.href = 'img.php?s=' + aVar + '&someOtherVar=itIsMeTheValue';
}

Click here

*Example 2*

function appendMeBaby(aVar, bVar){
   self.location.href = 'img.php

Re: [PHP] A two flavored post

2007-10-05 Thread Daniel Brown
On 10/5/07, tedd <[EMAIL PROTECTED]> wrote: > At 11:18 PM -0400 10/4/07, Nathan Nobbe wrote: > >On 10/4/07, tedd <[EMAIL PROTECTED]> wrote: > > > >Hi gang: > > > >I asked this question on the javascript list, but for some reason > >it's taking forever to post there. So, I

Re: [PHP] A two flavored post

2007-10-05 Thread tedd
At 11:18 PM -0400 10/4/07, Nathan Nobbe wrote: On 10/4/07, tedd <[EMAIL PROTECTED]> wrote: Hi gang: I asked this question on the javascript list, but for some reason it's taking forever to post there. So, I figured that I would ask here as well. I'm currently sending

Re: [PHP] A two flavored post

2007-10-04 Thread heavyccasey
A simple example would be Click here On 10/4/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Thu, 2007-10-04 at 22:33 -0400, tedd wrote: > > Hi gang: > > > > I asked this question on the javascript list, but for some reason > > it's taking forever to post there. So, I figured that I would ask

Re: [PHP] A two flavored post

2007-10-04 Thread Nathan Nobbe
On 10/4/07, tedd <[EMAIL PROTECTED]> wrote: > > Hi gang: > > I asked this question on the javascript list, but for some reason > it's taking forever to post there. So, I figured that I would ask > here as well. > > I'm currently sending data (the value of s) to another script via the > html stateme

Re: [PHP] A two flavored post

2007-10-04 Thread Robert Cummings
On Thu, 2007-10-04 at 22:33 -0400, tedd wrote: > Hi gang: > > I asked this question on the javascript list, but for some reason > it's taking forever to post there. So, I figured that I would ask > here as well. > > I'm currently sending data (the value of s) to another script via the > html s

[PHP] A two flavored post

2007-10-04 Thread tedd
Hi gang: I asked this question on the javascript list, but for some reason it's taking forever to post there. So, I figured that I would ask here as well. I'm currently sending data (the value of s) to another script via the html statement: Click here However, I need to add another variab