Now this is my latest code. Is it correct -->
function getHTML(num) {
var saf = 0 ;
var num;
if(!num) {
num = num || $F('refid');
} else {
num = num;
}
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 });
}
Its not working.
On Feb 17, 2:04 pm, Colin Mollenhour <[EMAIL PROTECTED]>
wrote:
> You didn't make the first change that Christophe told you to.. Also, it looks
> like you commented out the "pars" argument?
> The "var" keyword declares a variable. Doing so may overwrite any other
> variables in your scope with the same name as Christophe explained, please
> re-read his very first response. Your function should look like this:function
> getHTML(num) { var saf = 0 ; num = num || $F('refid'); 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
> }); }
> Pankaj wrote:This is changed the getHTML function--> function getHTML(num) {
> var saf = 0 ; var num; if(!num) { num = $F('refid'); } else { num = num; }
> 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 }); } Its not working . On Feb 16, 7:26 pm, Colin
> Mollenhour<[EMAIL PROTECTED]>wrote:Christophe's suggestions were correct but
> perhaps you didn't implement them in your code correctly. Please post a live
> demo or at least your getHTML function again as it is after you changed it.
> Colin Pankaj wrote:Anyone here ? On Feb 16, 6:18 pm, "Pankaj"<[EMAIL
> PROTECTED]>wrote:You want more code ? On Feb 16, 6:02 pm, Christophe
> Porteneuve<[EMAIL PROTECTED]>wrote:OK, so can you at least provide a full
> code for us to get the whole picture? Online demo would be best;-- Christophe
> Porteneuve [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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---