similar to: How to get title from a link

Displaying 20 results from an estimated 10000 matches similar to: "How to get title from a link"

2007 Oct 24
3
addClassName and removeClassName
Hi, and sorry for the noob question! I have an unordered list of 4 links where the links use Ajax.Updater in the onclick: onclick="new Ajax.Updater(''ajaxarea'', ''link1.php'', {asynchronous:true, evalScripts:true }); return false;" How would I go about using addClassName and removeClassName to show the current link? Thanks for any help with this.
2006 Jun 14
3
sortables and onClick events firing
I have a page that I have been tasked with adding sortable support to, and the div elements that are being dragged have a <a href> in them with an onClick handler that opens a new window with a preview. Is there a way to keep that onCLick from firing when a sortable is dropped? Sam D _______________________________________________ Rails-spinoffs mailing list
2007 May 15
1
Effect.dropout and Too Much Recursion Error
Hi, I need some help again. :-) I have "Too much recursion error" prototype.js line 1288, I heve this error when I try to use Effect.dropout (script.aculo.us) if I remove table ID, there is no error, and the effect works fine (remove the tr from table) But I need this ID assign to this table, as table ID is used by other effect (Builder.node) Please help .... Thanks YUAN Here is
2006 Jun 30
7
javascript woes with radio button groups
Ok! So I have this survey project I''m working on where there are a list of questions but only one shows up at a time. That part''s easy. And, it is fully functional as we speak (and I think even ''live'') however..... My boss wants to be able to have the survey go to the next question when a user selects an answer. This part is easy.. except..... IE
2006 Feb 22
2
''this.initialize'' is null or not an object
Hi, working on the accordion widget and it''s actually working nice (doesn''t seem to be jumpy) now but I am receiving a javascript error in IE 6. Does anybody have any ideas why it is happening? Thanks <script language="javascript"> sbr_stretch(el) { thisBodyId = el.parentNode.id + "_body"; thisBody = $(thisBodyId); if
2008 Apr 29
1
Making new Ajax.Updater within a previous Ajax.Updater call
I have a button which calls a form via Ajax.Updater: <a href="javascript:void()" onclick="createMessage()">Create Message</ a> <script> function createMessage() { new Ajax.Updater( ''content'', ''message.php'', { method: ''post'' } ); } </script> This is the message.php file: <html> <head>
2006 Jan 16
2
Behaviour.js and prototype Event.pointerX
is there a way to take advantage of prototypes Event.pointerX when using Behaviour to manage my events? somthing like.. var myrules = { ''body'' : function(el){ el.onclick = function(){ alert(Event.pointerX(e)); } } }; thanks ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions . http://
2007 Sep 06
1
semi-nube help request
just to show i''m not a complete dork: i receive emails from the list through gmail and i''ve already searched for the answer to this problem and since i''ve been a member i''ve not received an email about it. Google search results are mixed at best. so this is my problem: i have a form: <div id="container"
2007 Aug 03
1
Prototype AJAX functions.
Hi all! I have a form that when user fills he will press submit button which have effect "onClick:previewMessage()". previewMessage() function is an Ajax.update function. I would like to know how can I get form data into other file which I''m accessing with AJAX? I hope I made myself clear. --~--~---------~--~----~------------~-------~--~----~ You received this message
2006 Feb 03
4
Anonymous function variable scope issue
Hey all, I joined this list mostly because I don''t see too much in the OO javascript arena, and I have q''s (of course). I have a little pet project I am working on, you can see it here: http://thinkof.net/notify/index.html I have a class Notify.Alert() that takes some options and displays a div alert instead of a javascript one. Currently it is configurable to allow
2006 Feb 03
2
RE: help with syntax
I guess the first step is reading up on OOP in javascript... http://www.webreference.com/js/column79/ http://www.codeproject.com/aspnet/JsOOP1.asp Then, check out the definitive prototype.js guide... http://www.sergiopereira.com/articles/prototype.js.html -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005 Oct 18
0
RE: Error: "onclick() is not a function"
I see what he is saying now. When you assign a click event with the Event.observe it does not allow you to call it with the $(''xxx'').onclick(); command as it''s looking for the onclick tag in the a tag. I''m stumped on a way to get this to work. Jon Whitcraft Web Application Developer Online Services - Indianapolis Motor Speedway (317) 492-8623
2006 Jan 24
1
Scriptaculous and Photo Flipper a la TagWorld?
I saw a Flash-based photo-flipper on TagWorld ( http://www.tagworld.com/thepostalservice) and thought it would be nice to do something similar in Scripaculous. Anyone interested in taking a shot at it? Since rotation isn''t supported in CSS, what I would imagine would be a z-ordered "stack" of DIVs, possibly of slightly different sizes or just x/y-offset a bit from each other.
2008 Jul 01
5
Attaching event observers to a series of elements - best practice?
Hi all, New member here. I''ve been working with Prototype for a while, and I love it. However, there''s one thing I still can''t figure out. Let''s say I have an array of objects, representing contacts in an address book: var contacts = [ { id: 1, firstName: "Bob", lastName: "Smith" }, { id: 2, firstName: "Sue", lastName:
2008 Jun 18
1
Form submit listener not catching form.submit();
Event listener for a form being submitted is not catching an A tag with a submit in it. Example JS: $(form).observe(''submit'', function(e) { e.stop(); // Something }); Example HTML: <a href="#" onClick="myForm.submit();">Submit form</a> Any idea how to fix this without added more js to button?
2007 Jul 17
1
Prototype: 2 questions (elements' attributes, dumping methods)
hello again) 1) i just wanted to know is it possible to get element''s attributes in hash or array? for example something like this: <span style="color:red;" id="myEl" onclick="alert(1)"> .. $(''myEl'').attibutes().length // == 3 2) is there any analogues of php functions var_dump() and print_r() for Objects/Hashes and Arrays? thank
2007 Nov 19
1
Running a script after evalScripts has completed
Hello, (I originally posted this on the Prototype-Core group by mistake, sorry) I am running a request via Ajax.Updater with evalScripts = true and an onComplete function. I find that my onComplete function executes before the script content has been evaluated. Looking through prototype.js (v. 1.5.1) this seems to be caused by the scripts being executed as part of this line (1352):
2008 Jun 17
4
Formating Date Field
First.jsp ------------------ <jsp:usebean id="db" class="db.dbClass" scope=session/> <html> <body> <form action="MyAction.jsp" method="post"> <% ResultSet rs=db.executeQuery("select no,name from mytable"); while(rs.next()) {%> <input type=checkbox value=<%=rs.getString(1)%> onclick=callJs(<
2007 Nov 16
3
IE: error with Serializers[method] in getValue()
Hi, Version: prototype 1.6.0 I''m using the $F function to get the value of a field. It works fine in FireFox, but IE 6 and 7 are reporting "object does not support his property or method" (translated from german). In IE debugger it hightlights the line 3485: --- return Form.Element.Serializers[method](element); --- I searched the web, but this problem seems to be quite unique
2006 Jul 10
17
Effect.SlideDown/Up() and HTML issues
Hello, I''m hoping this is the right place to ask these kind of questions. If not, please excuse me. Anyway, the problem I''m having is that I have a HTML table showing some tabular data and I want to use Effect.SlideDown/Up to allow the user to interactively show "details" for each item (<tr><td> etc) in that list. I''ll do some pseudo-code for