num = num [[ $F('refid');

What is that actually ?
Is it a bracket or the OR  ?

[[ or || ?

If this [[ then its wrong ?


On Feb 17, 4:57 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
> Hey Pankaj,
>
> First, please stop pinging people for reply.  It's annoying, and it
> certainly won't make people who didn't reply yet want to reply more.
>
> Second, please READ what we say.  The trouble in your function is the
> re-declaration of num as a local variable, which obscures your
> parameter.  Here's how it should read:
>
> function getHTML(num) {
>   num = num [[ $F('refid');
>   var saf = 0;
>   var url = '/cgi-bin/tps/search.cgi';
>   var pars = { num: num, showallfiles: saf,
>     act: 'showattachedfilesection' };
>   new Ajax.Updater({ success: 'placeholder' }, url, {
>     method: 'get', parameters: pars, evalScripts: true,
>     onFailure: reportError });
>
> }
>
> Finally, don't say "it's not working."  There is no report less useful
> than that.  We have no idea what your function should do; we have no
> idea where and how your function is CALLED, and what's passed as the num
> argument; we have no idea what the server-side script does, whether it
> does return something, and then what.  We have no idea what your
> placeholder element is, and what your reportError function does.
>
> You're asking us to help diagnose a problem while exposing 5% of it.
>
> Can't you PLEASE put up an online reproducible case, and clearly state
> what's supposed to happen?
>
> Sincerely,
>
> --
> Christophe Porteneuve a.k.a. TDD
> "[They] did not know it was impossible, so they did it." --Mark Twain
> Email: [EMAIL PROTECTED]


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to rubyonrails-spinoffs@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to