Sounds to me like one of your other scripts had an error in it
causing the follow-on text to fail.
It happens!
Deco
On Mar 21, 2006, at 8:22 PM, Guillermo Movia wrote:
Thanks to all for your help. At last, i could make it work, banning
all other scripts of java of the response. Maybe somethi
Thanks to all for your help. At last, i could make it work, banning
all other scripts of java of the response. Maybe something was wrong
there.
Guillermo
2006/3/21, Guillermo Movia <[EMAIL PROTECTED]>:
> I don't know where is the error. If i just make a file with the script
> taht generate the ph
I don't know where is the error. If i just make a file with the script
taht generate the php and save it like html, it's work. But with the
same script generate by the php, doesnt work.
How could i make that ultima2 function runs automatically when the
Ajax.response ends?
Maybe the problem was th
I could make another simple script works with evalScript. Something is
wrong with the amount of Javascript i had. I will continue searching
for the error. Thanks a lot to all.
Guillermo
2006/3/21, Guillermo Movia <[EMAIL PROTECTED]>:
> I think that is better is i explain my project:
>
> I have a
I think that is better is i explain my project:
I have a php script that return a table with news. To actualize this
news, i need the lastID that i bring in the previous call and a number
(this variable ultimaNoticia). The lastID was easy for me, because it
came like a part of the tr tag, but this
why are you not using
function ultima2(){
}
no semicolon at the end
On Mar 21, 2006, at 3:08 PM, Todd Ross wrote:
On 3/21/06, Guillermo Movia <[EMAIL PROTECTED]> wrote:
ultima2 = function() {
var ultimaNoticia = 677;
$('lastStory').innerHTML = ultimaNoticia;
};
Try
window.ultima2 = functi
Sorry I misread...
Even though I understand what Greg says it should work.
Personally, I never use onclick.
Instead I use Event.observe
Have you tried this:
onclick="alert('test')";
to see if this works first?
On Mar 21, 2006, at 2:55 PM, Guillermo Movia wrote:
No, ultima2() doesn't call
On 3/21/06, Guillermo Movia <[EMAIL PROTECTED]> wrote:
> ultima2 = function() {
> var ultimaNoticia = 677;
> $('lastStory').innerHTML = ultimaNoticia;
> };
Try
window.ultima2 = function() {
...
}
Todd
___
Rails-spinoffs mailing list
Rails-spinoffs@li
> No, ultima2() doesn't call the Ajax.Updater, it comes in the response,
> but nothing else. The button also came in the response.
> Which is the way to use this function?
Is ultima2 used by other elements as well? If not, just do an inline
function:
onclick="function () { ... }"
Greg
_
" href="mailto:rails-spinoffs-">mailto:rails-spinoffs-</a>
> >> [EMAIL PROTECTED] On Behalf Of Guillermo Movia
> >> Sent: Tuesday, March 21, 2006 2:34 PM
> >> To: rails-spinoffs@lists.rubyonrails.org
> >> Subject: Re: [Rails-spinoffs] J
le block. You should be able to also have html
> markup in the response.
>
> Greg
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> [<a rel="nofollow" href="mailto:rails-spinoffs-">mailto:rails-spinoffs-</a>
> > [EMAIL PROTECTED] O
o:rails-spinoffs-</a>
</pre><blockquote style="border-left: #EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;">
[EMAIL PROTECTED] On Behalf Of Guillermo Movia
Sent: Tuesday, March 21, 2006 2:34 PM
To: rails-spinoffs@lists
OTECTED]
[<a rel="nofollow" href="mailto:rails-spinoffs-">mailto:rails-spinoffs-</a>
> [EMAIL PROTECTED] On Behalf Of Guillermo Movia
> Sent: Tuesday, March 21, 2006 2:34 PM
> To: rails-spinoffs@lists.rubyonrails.org
> Subject: Re: [Rails-spinoffs] Javasc
Thanks for the answers, but It isn't work yet. This is the code in the
ajax response. Before this, the response has a code for an html table
(i don't know if i could mix javascript code and html)
ultima2 = function() {
var ultimaNoticia = 677;
$('lastStory').innerHTML = ultimaNoticia;
};
Now, m
> I would kill the comma after the true. Not sure if this is an issue,
> but evalscripts works all the time for us!
Yes, it is an issue in IE. IE thinks it's a syntax error.
Greg
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http
I would kill the comma after the true. Not sure if this is an issue,
but evalscripts works all the time for us!
Deco
On Mar 21, 2006, at 1:00 PM, Guillermo Movia wrote:
Hi, i wish to run a function that came inside my Ajax response. I read
that i have to use the evalScripts to make this, but
Hi, i wish to run a function that came inside my Ajax response. I read
that i have to use the evalScripts to make this, but still i couldn't
make it work. The error said that my function isn't declared. I look
at the Sergio Pereira tutorial about use the var xxx = function() but
still doesn't work.
17 matches
Mail list logo