List Info

Thread: Re: 19 new messages in 10 topics - digest




Re: 19 new messages in 10 topics - digest
user name
2007-09-30 11:33:52
Hello I am Elisabet mrs Palne Bartos
I please you comming my groups E-idealis we working very good idea
P2W Passport to Wealt here are very good job very good money and very kindly people. Welcome my groups Elisabeth please reply to me.

 ;
On 9/29/07, rubyonrails-spinoffs group < noreplygooglegroups.com">noreplygooglegroups.com> wrote:

Ruby on Rails: Spinoffs
http://groups.google.com/group/rubyonrails-spinoffs?hl=en

rubyonrails-spinoffsgooglegroups.com">rubyonrails-spinoffsgooglegroups.com

Today's topics:

* transportXML returns null? - 2 messages, 2 authors
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/b47059b4e73db8ec?hl=en
* resizing multiple divs - dragging - 2 messages, 1 author
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/376deae7604fe081?hl=en
* Image Slideshow (with clickable URL) - 2 messages, 2 authors
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/b59a261f84bbad44?hl=en
* drag and drop reset - 2 messages, 2 authors
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/8315bdbbc5a2bdf7?hl=en
* form request (ajax) method in 1.5.1 - 1 messages, 1 author
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/86fdb6a200fbb2e0?hl=en
* evalJSON problem - 2 messages, 2 authors
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/7298c97b6dd1555a?hl=en
* Why PeriodicalUpdater doesn't work on Internet Explorer? - 2 messages, 2
authors
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/10ae5621a34d5558?hl=en
* Event.observe doesn't work - 3 messages, 3 authors
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/15c60ceb70a12b78?hl=en
* Ajax.Updater doesn't work with IE6 properly - 1 messages, 1 author
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/778d8273dd134fa8?hl=en
* How to call a javascript in parent page from a Prototype Window? - 2
messages, 2 authors
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/d06d7337735b1bc8?hl=en

==============================================================================
TOPIC: transportXML returns null?
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/b47059b4e73db8ec?hl=en
==============================================================================

== 1 of 2 ==
Date: Thurs, Sep 27 2007 10:48 pm
From: AlexK


This is what I added to the XHTML file that I get:

<meta http-equiv="Content-Type&quot; content=&quot;text/xml; charset=UTF-8" />

and this:

new Ajax.Request(url,
&nbsp; &nbsp; &nbsp;  {
 &nbsp; &nbsp;   ; &nbsp;  method:&quot;get";,
 &nbsp; &nbsp;   ; &nbsp;  contentType:"text/xml",
 &nbsp; &nbsp; &nbsp;   ;  onSuccess: function(transport) {

And I still get null: ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;var response =
transport.responseXML;

Thanks!
On Sep 28, 12:25 am, AlexK < alexkoif...gmail.com">alexkoif...gmail.com> wrote:
>; Hi, this:
> contentType: "application/xml"
&gt;
> did not change anything.&nbsp; ANy other ideas?&nbsp; Thanks.
>
&gt; On Sep 27, 7:16 pm, Tobie Langel < tobie.lan...gmail.com">tobie.lan...gmail.com> wrote:
>;
> > You have to set a correct content-type (application/xml).
>
> > Regards,
&gt;
> > Tobie
>
> > On Sep 28, 12:39 am, AlexK < alexkoif...gmail.com">alexkoif...gmail.com> wrote:
>;
> > > Hi,
>
> > > I want to load an XHTML file into DOM.  I issue Ajax.Request and on
> > > success do:
> > >  var response=transport.responseXML
&gt;
> > > Response is null. ; On the other hand:
&gt; > >   var response=transport.responseText;  ;// has the data.
>
> > > Why is response=transport.responseXML returns null?
>
> > > Here is the code:
>
> > >   ;  function display() {
> > >   ; &nbsp; &nbsp; url = "http://" + location.hostname + port + "/fusion/
> > > restlet/&quot;;
> > >   ; &nbsp; &nbsp; url = url + "engines" + sServer;
&gt; > >   ; &nbsp; &nbsp;  new Ajax.Request(url,
&gt; > >   ; &nbsp; &nbsp;  {
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  method:&quot;get";,
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  contentType:"application/xhtml+xml&quot;,
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  onSuccess: function(transport) {
>
&gt; > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; var response = transport.responseXML; &nbsp; &nbsp;// null ?
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; //var response = transport.responseText; &nbsp;// OK
>
&gt; > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; alert(&quot;after response=&quot; + response);
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; if (response != null) {
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; alert(&quot;b=" +
> > > response.getElementById('lastUpdate';).innerHTML); &nbsp;// this never works
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;}
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; else
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; alert(&quot;onSuccess, responseXML is null");
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  },
> > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  onFailure: function(){ alert(&quot;Cannot get data from server:
> > > " + location.host) }
> > >   ; &nbsp; &nbsp;  });
> > >   ;  }- Hide quoted text -
>
>; > - Show quoted text -





== 2 of 2 ==
Date: Fri, Sep 28 2007 11:59 am
From: Matt Foster


I use the following code in PHP to make sure my output is interpreted
as XML

header("Content-Type: text/xml&quot;);

and this code for ColdFusion.

<cfheader charset=&quot;utf-8&quot; name=";Content-type" value=&quot;text/xml&quot;>


Cheers,
  ; &nbsp; &nbsp;Matt

On Sep 28, 1:48 am, AlexK < alexkoif...gmail.com">alexkoif...gmail.com> wrote:
>; This is what I added to the XHTML file that I get:
>
> <meta http-equiv="Content-Type&quot; content=&quot;text/xml; charset=UTF-8" />
&gt;
> and this:
>
> new Ajax.Request(url,
>; &nbsp; &nbsp; &nbsp; &nbsp; {
>&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; method:&quot;get";,
>&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; contentType:"text/xml",
; &nbsp; &nbsp; &nbsp; &nbsp;   ; onSuccess: function(transport) {
>
&gt; And I still get null: ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;var response =
> transport.responseXML;
>
> Thanks!
&gt; On Sep 28, 12:25 am, AlexK < alexkoif...gmail.com">alexkoif...gmail.com > wrote:
>;
> > Hi, this:
> > contentType: "application/xml"
>
> > did not change anything.&nbsp; ANy other ideas?&nbsp; Thanks.
>
&gt; > On Sep 27, 7:16 pm, Tobie Langel < tobie.lan...gmail.com">tobie.lan...gmail.com> wrote:
>;
> > > You have to set a correct content-type (application/xml).
&gt;
> > > Regards,
&gt;
> > > Tobie
&gt;
> > > On Sep 28, 12:39 am, AlexK < alexkoif...gmail.com">alexkoif...gmail.com> wrote:
>;
> > > > Hi,
>
&gt; > > > I want to load an XHTML file into DOM.  I issue Ajax.Request and on
> > > > success do:
> > > >  var response=transport.responseXML
&gt;
> > > > Response is null. ; On the other hand:
> > > >   var response= transport.responseText; &nbsp;// has the data.
>
> > > > Why is response=transport.responseXML returns null?
>
> > > > Here is the code:
>
> > > >   ;  function display() {
> > > >   ; &nbsp; &nbsp; url = "http://" + location.hostname + port + "/fusion/
> > > > restlet/&quot;;
> > > >   ; &nbsp; &nbsp; url = url + "engines" + sServer;
&gt; > > >   ; &nbsp; &nbsp;  new Ajax.Request(url,
&gt; > > >   ; &nbsp; &nbsp;  {
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  method:&quot;get";,
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  contentType:"application/xhtml+xml&quot;,
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  onSuccess: function(transport) {
>
&gt; > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; var response = transport.responseXML; &nbsp; &nbsp;// null ?
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; //var response = transport.responseText; &nbsp;// OK
>
&gt; > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; alert(&quot;after response=&quot; + response);
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; if (response != null) {
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; alert(&quot;b=" +
> > > > response.getElementById('lastUpdate';).innerHTML); &nbsp;// this never works
&gt; > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;}
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; else
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; alert(&quot;onSuccess, responseXML is null");
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  },
> > > >   ; &nbsp; &nbsp; &nbsp; &nbsp;  onFailure: function(){ alert(&quot;Cannot get data from server:
> > > > " + location.host) }
> > > >   ; &nbsp; &nbsp;  });
> > > >   ;  }- Hide quoted text -
>
>; > > - Show quoted text -






==============================================================================
TOPIC: resizing multiple divs - dragging
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/376deae7604fe081?hl=en
==============================================================================

== 1 of 2 ==
Date: Fri, Sep 28 2007 4:38 am
From: Bebeth Steudel


I'm trying to resize multiple divs at once and having some trouble
keeping everything together.

I've got 3 divs: 2 "box&quot; divs and a "handle" between them. The handle
is an instance of a Draggable. When creating a draggable I use the
onStart event to record the offsetLeft of the handle. Then in the
onDrag function I check the new offsetLeft to figure out how far the
hand has moved. If its gone left I shrink reduce the left box's width
and expand the right box's width.

&lt;div id="invitations&quot;>
</div&gt;

<div id="drag1" style=&quot;height:200px; float:left">
  ; &nbsp; &nbsp; <img src="images/dragger.jpg&quot; alt="dragger&quot;>
</div>

&lt;div id="characters&quot;>

</div&gt;

<script type=";text/javascript" language=&quot;javascript"&gt;
 &nbsp;   ; &nbsp;  new Draggable("drag1", { starteffect:0, revert:true,
constraint:'horizontal';, onStart:function(){ startResize('drag1'); },
onDrag:function(){ performResize('drag1'); }});

startResize = function(elementName){
 &nbsp; &nbsp; &nbsp; var element = document.getElementById(elementName);
 ; &nbsp; &nbsp;  element.startX = element.offsetLeft;
}

performResize = function(elementName){
 &nbsp; &nbsp; &nbsp; var element = document.getElementById(elementName);
 ; &nbsp; &nbsp;  var leftElement = document.getElementById("invitations&quot;);
&nbsp; &nbsp; &nbsp;  leftElement.style.width = parseInt( leftElement.style.width) +
element.offsetLeft - element.startX + "px&quot;;
}

&lt;/script&gt;

Unfortunately this doesn't seem to be working. I think it has
something do with the fact that as I expand the left div's width, the
offset for the "handle" is now huge.

I&#39;m guessing there's a really simple solution since this seems like
basic functionality, but I'm new and can't figure it out.

Thanks in advance for the help!!





== 2 of 2 ==
Date: Fri, Sep 28 2007 5:08 am
From: Bebeth Steudel


Never mind....really dumb mistake. Was adding the whole movement
amount to the current width (not the original width). Sorry.






==============================================================================
TOPIC: Image Slideshow (with clickable URL)
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/b59a261f84bbad44?hl=en
==============================================================================

== 1 of 2 ==
Date: Fri, Sep 28 2007 5:08 am
From: playaz


Hi,

I am looking for solution to the following problem - I require a
slideshow effect that will fade in/out a number of images each one
clickable with a unique URL - this would require some javascript
(possibly ajax)

All the images/urls will come from an php array (eg dynamic rather
than static)

Can anyone point me in the right direction of advice on how to achieve
this?

Thanks in advance





== 2 of 2 ==
Date: Fri, Sep 28 2007 10:46 am
From: Prateek


See you can get the details about the images like their URL, and the
URL they are supposed to link to. You can get this data from PHP in
the form of JSON, so that the JS code is easier to write. You will
setup an Ajax.Request to get this data and then render all the images
and hide them. Then you will show just one of them, and on the click
of some button you can hide the one being shown now and switch to
another one, by fading(Effect.Fade) the originial one and making the
new one appear(Effect.Appear).

If you are looking for help in terms of code you can also check out -
http://www.prototypejs.org/api
http://wiki.script.aculo.us/scriptaculous/show/HomePage

On Sep 28, 5:08 pm, playaz < playazcl...gmail.com"> playazcl...gmail.com> wrote:
>; Hi,
>
&gt; I am looking for solution to the following problem - I require a
> slideshow effect that will fade in/out a number of images each one
> clickable with a unique URL - this would require some javascript
> (possibly ajax)
>
> All the images/urls will come from an php array (eg dynamic rather
>; than static)
&gt;
> Can anyone point me in the right direction of advice on how to achieve
&gt; this?
&gt;
> Thanks in advance






==============================================================================
TOPIC: drag and drop reset
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/8315bdbbc5a2bdf7?hl=en
==============================================================================

== 1 of 2 ==
Date: Fri, Sep 28 2007 6:39 am
From: Tim Wisniewski


I have a draggable, and I place it on a droppable.  ;How do I make the
draggable go back to its original postion?&nbsp; Thanks.

-Tim





== 2 of 2 ==
Date: Fri, Sep 28 2007 11:55 am
From: Matt Foster


If you dig into the guts of the Draggable class, you'll see that a
Draggable never removes the element from its parent, just effects its
position properties to move it inside the document.&nbsp; To get the item
such that its like cloning the object into a cart or something, use
the "onEnd" event to make a clone, stuff the clone where you want and
just reset the position properties of the original and it will fall
back into place. Which is really a hack of the class, i think this
sort of functionality is so common that it should be more
appropriately accommodated.

Cheers,
 &nbsp; &nbsp; &nbsp;  Matt

On Sep 28, 9:39 am, Tim Wisniewski < tjw3...gmail.com">tjw3...gmail.com> wrote:
>; I have a draggable, and I place it on a droppable.  ;How do I make the
> draggable go back to its original postion?&nbsp; Thanks.
>
> -Tim






==============================================================================
TOPIC: form request (ajax) method in 1.5.1
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/86fdb6a200fbb2e0?hl=en
==============================================================================

== 1 of 1 ==
Date: Fri, Sep 28 2007 8:37 am
From: slon


does request method of form object support other url for request than
default 'action' url? if not then will it be supported in 1.6?






==============================================================================
TOPIC: evalJSON problem
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/7298c97b6dd1555a?hl=en
==============================================================================

== 1 of 2 ==
Date: Fri, Sep 28 2007 10:29 am
From: " parsa.ghaffarigmail.com">parsa.ghaffarigmail.com "


Hey there,
I have a FCKeditor(a WYSIWYG online html editor) and i want to bring
it to a page by Ajax and JSON by a php request-catcher.
I have sth like this in my ajax request:

new Ajax.Request ('myactions.php',
{
&nbsp;  method:9;get',
 &nbsp; &nbsp; &nbsp; parameters: {action:&#39;bringeditor', id:<?php echo $uid; ?>},
&nbsp;  onSuccess: function(transport){
  ; &nbsp; &nbsp; &nbsp; var response = transport.responseText ;
   ; &nbsp; &nbsp; &nbsp; &nbsp;  var data = response.evalJSON();
  ; &nbsp; &nbsp; &nbsp; &nbsp;   $('maincontent9;).innerHTML=data.mytextarea;
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; eval(data.jsaction);*/
 &nbsp; },
 &nbsp; onFailure: function(){ alert(';Something went wrong...&#39;) }
});

and in 'myactions.php9; :
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; $textarea= "<textarea id='MyTextarea9; name='MyTextarea&#39;>
$txtareacontent</textarea>\n&quot;;
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  header(&quot;Content-type: text/javascript");
   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; $jsaction= "var oFCKeditor = new FCKeditor('MyTextarea');\n";
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  $jsaction.= "oFCKeditor.ReplaceTextarea();\n";
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; echo "{mytextarea: $textarea, jsaction: $jsaction}";

now the problem is that i dunno what user enters in the editor, and
i've got problems handling characters that may conflict with the JSON
request ( like " n etc) what can i do ? i tried $H ... no use. thX





== 2 of 2 ==
Date: Fri, Sep 28 2007 11:29 am
From: Matt Foster


Hey there Parsa,

I&#39;d suggest just building the textarea in the page and hiding until
the user needs it, lazy loading like that can be a big headache as im
sure you already know.

To avoid complications with forward slashes you could use the string
method, addslashes. http://us2.php.net/manual/en/function.addslashes.php

Cheers,
  ; &nbsp; Matt

On Sep 28, 1:29 pm, " parsa.ghaff...gmail.com">parsa.ghaff...gmail.com"
< parsa.ghaff...gmail.com">parsa.ghaff...gmail.com> wrote:
&gt; Hey there,
>; I have a FCKeditor(a WYSIWYG online html editor) and i want to bring
> it to a page by Ajax and JSON by a php request-catcher.
> I have sth like this in my ajax request:
&gt;
> new Ajax.Request('myactions.php&#39;,
>&nbsp;  {
>&nbsp; &nbsp;  method:9;get',
  ; &nbsp; &nbsp;  parameters: {action:&#39;bringeditor', id:<?php echo $uid; ?>},
&gt; &nbsp; &nbsp; onSuccess: function(transport){
; &nbsp; &nbsp; &nbsp; &nbsp;  var response = transport.responseText;
>&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; var data = response.evalJSON();
> &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  $('maincontent9;).innerHTML=data.mytextarea;
&gt; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  eval(data.jsaction );*/
>&nbsp; &nbsp;  },
>&nbsp; &nbsp;  onFailure: function(){ alert(';Something went wrong...&#39;) }
>&nbsp;  });
>
&gt; and in 'myactions.php9; :
>&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  $textarea= "<textarea id='MyTextarea9; name='MyTextarea&#39;>
> $txtareacontent</textarea>\n";
&gt; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; header(&quot;Content-type: text/javascript");
>&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  $jsaction= "var oFCKeditor = new FCKeditor('MyTextarea');\n";
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   $jsaction.= "oFCKeditor.ReplaceTextarea();\n";
; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  echo "{mytextarea: $textarea, jsaction: $jsaction}";
>;
> now the problem is that i dunno what user enters in the editor, and
> i've got problems handling characters that may conflict with the JSON
> request ( like " n etc) what can i do ? i tried $H ... no use. thX






==============================================================================
TOPIC: Why PeriodicalUpdater doesn't work on Internet Explorer?
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/10ae5621a34d5558?hl=en
==============================================================================

== 1 of 2 ==
Date: Fri, Sep 28 2007 12:52 pm
From: "www.webpolis.com.ar&quot;


I have the following code:

<;script type=";text/javascript">
Event.observe(window, 'load&#39;, function() {
var updater = new Ajax.PeriodicalUpdater('chatbox', 'chat.php ',
{method: 'get&#39;, asynchronous: true, frequency: 0.55, decay: 2,
onSuccess: function(){$('chatbox').scrollTop=$
('chatbox').scrollHeight}});
})

&lt;/script&gt;

It's for a chat program i'm making, but, the Periodical Refresh
doesn't work on Internet Explorer. If i send a message from Internet
Explorer, i won't see the message displayed but Firefox does see the
message. Anyway, here is the url:

http://www.avecesestoytriste.com.ar/chat/main.php

Please help me, i think that IE only refresh the DIV ('chatbox') one
time and no more.

Thanks
Nico





== 2 of 2 ==
Date: Fri, Sep 28 2007 12:59 pm
From: Jonathan Weiss



&gt; Please help me, i think that IE only refresh the DIV ('chatbox') one
> time and no more.

Use HTTP POST and not GET, IE will othervise case the request, see

http://blog.innerewut.de/2007/9/22/ie-doesn-t-let-us-rest

Jonathan

--
Jonathan Weiss
http://blog.innerewut.de





==============================================================================
TOPIC: Event.observe doesn't work
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/15c60ceb70a12b78?hl=en
==============================================================================

== 1 of 3 ==
Date: Fri, Sep 28 2007 3:18 pm
From: cgusupport


Hi,

The following simple html doesn't work with errors, why?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN&quot;"http://www.w3.org/TR/
html4/strict.dtd&quot;>
&lt;html>
  ; &nbsp; &nbsp; <title&gt;click<;/title>  ; &nbsp;<head&gt;
<h2&gt;Click!&lt;/h2>
&lt;script type=";text/javascript" language=&quot;javascript"&gt;
 ; &nbsp; Event.observe('myAnchor', 'click', function(e){ alert(';clicked
me!') });
</script>
&lt;a href=";#null"; id="myAnchor&quot;>1</a>
&nbsp; &nbsp; &nbsp;  </body&gt;
</html>


Error: Event not define.





== 2 of 3 ==
Date: Sat, Sep 29 2007 12:00 am
From: Frank Schummertz


cgusupport schrieb:

> The following simple html doesn't work with errors, why?

You should load prototype.js if you want to use it

<script type=";text/javascript" src="path/to/prototype.js&quot;><;/script>;

Frank


--
"Laut einer Studie der deutschen Ärztevereinigung sterben immer
mehr Rentner vor dem Computer. Sie drücken versehentlich die
Tastenkombination Alt+Entfernen."

http://www.landseer-stuttgart.de
http://www.pn-cms.de




== 3 of 3 ==
Date: Sat, Sep 29 2007 3:50 am
From: redheat


1: you need to include prototype.js
2: you should always define observers after the element is written in
your code, i.e., *after* <a ... id="myAnchor&quot;>. To do this, either add
your functions at the bottom of the page, or Event.observe(body,
&#39;load9;, function() { <FUNCTIONS> }); and add the functions in here.

Edd

On Sep 28, 11:18 pm, cgusupport < cgusupp...gmail.com">cgusupp...gmail.com> wrote:
>; Hi,
>
&gt; The following simple html doesn't work with errors, why?
>;
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN&quot;"http://www.w3.org/TR/
> html4/strict.dtd";>
> <html&gt;
>&nbsp; &nbsp; &nbsp; &nbsp;  <title&gt;click<;/title>  ; &nbsp; &nbsp; &nbsp;<head>
>; <h2>Click!</h2>
>  ; <script type=";text/javascript" language=&quot;javascript"&gt;
>&nbsp; &nbsp; &nbsp; Event.observe('myAnchor', 'click', function(e){ alert(';clicked
> me!') });
>&nbsp;  </script>
> <a href=";#null"; id="myAnchor&quot;>1</a>
>  ; &nbsp; &nbsp; &nbsp; </body&gt;
> </html&gt;
>
&gt; Error: Event not define.






==============================================================================
TOPIC: Ajax.Updater doesn't work with IE6 properly
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/778d8273dd134fa8?hl=en
==============================================================================

== 1 of 1 ==
Date: Fri, Sep 28 2007 11:57 pm
From: justin < 123jjygmail.com">123jjygmail.com>


My environment is Apache2+php5. The test doc is "ajaxtest.php&quot;, which
uses Ajax.Updater to load content from /test/test1/inphp.php. It works
soomthly in Firefox. But nothing can be displayed in IE6, the brower
got no response and the onComplete was not trigered. However, if I put
the two doc under the same dir, everything goes well. Or, if I replace
the inphp.php with a html doc such as "inhtm.html"; in /test/test1, the
Updater then can load the doc's content properly.&nbsp; Is there anyone
having encountered such problem?

Previously, I use Apache1.3+php4.3 . Then, no such problem comes out.

Thanks.

//ajaxtest.php

&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN";
 &nbsp; &nbsp; &nbsp; " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
<html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=";en"&gt;
<HTML>
<HEAD>
&nbsp; &nbsp;   ; <script type=";text/javascript" src="prototype.js"></script>
<META NAME=";Generator&quot; CONTENT=&quot;EditPlus">
<META NAME=";Author&quot; CONTENT=&quot;"&gt;
<META NAME=";Keywords&quot; CONTENT=&quot;"&gt;
<META NAME=";Description" CONTENT=&quot;"&gt;
 &nbsp;   ;  <meta http-equiv="Content-Type&quot; content=&quot;text/html; charset=UTF-8" /
>
&lt;TITLE>; New Document </TITLE>
</HEAD>
<;body class=&quot;bg"&gt;

<div id="main" class=&quot;main";></div>

<;script>
 &nbsp; &nbsp; &nbsp; var myaj = new Ajax.Updater('main',&#39;http://address/test/test1/
inphp.php',{evalScripts:true,onComplete:function(req)
{alert(req.responseText);}});
</script>
</body&gt;
</html>






==============================================================================
TOPIC: How to call a javascript in parent page from a Prototype Window?
http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/d06d7337735b1bc8?hl=en
==============================================================================

== 1 of 2 ==
Date: Sat, Sep 29 2007 2:16 am
From: syg6



I&#39;ve been messing around with this all morning. I've looked at all the
examples ... there doesn't seem to be a mailing list for the Prototype
Window Class but people seem to know a lot about it on this list so I'll try
my luck.

I open a Prototype Window and display a list. When the user clicks on one of
the elements in the list I would like to call a js function I have defined
in the page that opened the Window. How do I do this?

I've tried 'old school'; parent, parent.opener ... I've also tried using
observers but they don't seem to be triggering.

Can someone throw me a clue?

Thanks,
Bob
--
View this message in context: http://www.nabble.com/How-to-call-a-javascript-in-parent-page-from-a-Prototype-Window--tf4527604.html#a12918725
Sent from the RubyOnRails Spinoffs mailing list archive at Nabble.com.





== 2 of 2 ==
Date: Sat, Sep 29 2007 3:13 am
From: Tobie Langel


Hi,

there actually is a forum (http://pwc-forum.xilinus.com/) and a
mailing list (http://fates.multisite.site5.com/mailman/listinfo/
javawin_xilinus.com) for PWC.

Hope this helps.

Regards,

Tobie

On Sep 29, 11:16 am, syg6 < s...yahoo.com">s...yahoo.com> wrote:
>; I've been messing around with this all morning. I've looked at all the
> examples ... there doesn't seem to be a mailing list for the Prototype
> Window Class but people seem to know a lot about it on this list so I'll try
> my luck.
>
> I open a Prototype Window and display a list. When the user clicks on one of
> the elements in the list I would like to call a js function I have defined
&gt; in the page that opened the Window. How do I do this?
>
> I've tried 'old school'; parent, parent.opener ... I've also tried using
&gt; observers but they don't seem to be triggering.
>
> Can someone throw me a clue?
>
> Thanks,
&gt; Bob
> --
> View this message in context: http://www.nabble.com/How-to-call-a-javascript-in-parent-page-from-a-...
> Sent from the RubyOnRails Spinoffs mailing list archive at Nabble.com.





==============================================================================

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs&quot;
group.

To post to this group, send email to rubyonrails-spinoffsgooglegroups.com"> rubyonrails-spinoffsgooglegroups.com or
visit http://groups.google.com/group/rubyonrails-spinoffs?hl=en

To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribegooglegroups.com">rubyonrails-spinoffs-unsubscribegooglegroups.com

To change the way you get mail from this group, visit:
http://groups.google.com/group/rubyonrails-spinoffs/subscribe?hl=en

To report abuse, send email explaining the problem to abusegooglegroups.com">abusegooglegroups.com

==============================================================================
Google Groups: http://groups.google.com?hl=en



--
Bartos Pálné
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs&quot; group.
To post to this group, send email to rubyonrails-spinoffsgooglegroups.com
To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )