Hello
In the To field when you type the letter 'a', the first item in the
drop down list is the Ada Noel, how do I capture the e-mail address,
basically I want to set a hidden field in the form with the email
address selected.
thanks in advance
Sridhar
Thomas,
Some sample code and HTML would help immensely.
+1 for that. Thomas, if you can create a small, self-contained
example demonstrating the problem and post it to Pastie[1], I expect
folks will be able to help you figure out how to deal with the IE
problem.
[1] http://pastie.org
--
T.J.
Hi,
i am using prototype js , i have become fan of it after using it
extensively,
i had one request for you.
while communicating in between the same domain from parent to
window...i face some problems
example:
i have abc.pradeep.com in window, inside an iframe i am calling
xyz.pradeep.com
Hi,
Just to be clear about the question: It sounds like you're familiar
with the Same Origin Policy and you're using Document.domainName to
deal with it. Are you saying the problem is that Opera doesn't
support that and still thinks the SOP is being violated? And you're
looking for a
Hi,
I've never written anything in javascript besides some simple event
handlers.
I'm trying to write a simple script for ajaxified tabs and I'd like to
be able to simply call $('some-id').tabs(); to initialize them -
similarly as it works in jQuery plugin.
Here's a sample code:
Dear crowder,
Happy to see a instant support. I am aware of SOP. , i think we can access our
sub-domains by putting document.domain = maindomainname :
ex:
xyz.pradeep.com
abs.pradeep.com
are my sub domians
now at abs.pradeep.com i have an application which i am trying to open from
sorry there is a typo in my previous maili am unable to do this in opera
...should be replaced instead of but in opera i am able to do this
On Thu, 30 Oct 2008 spradeepkumar [EMAIL PROTECTED] wrote
Dear crowder,
Happy to see a instant support. I am aware of SOP. , i
[I hate top-posting, but that seems to the the norm here]
Use 'informal' [1]
Make your ajax call return
lispan class='informal'Ada Noel/spanspan
class='hide'[EMAIL PROTECTED]/span/li
etc.
Then have a CSS rule
span.hide {display:none}
The CSS will ensure that only the name is displayed to the
Thanks so much it worked like a charm :)
On Mon, Oct 27, 2008 at 7:55 PM, Gabriel Gilini [EMAIL PROTECTED]wrote:
Place this inside anFunction:
evt.stop();
it stops the default behavior of the current event, which in your case is
following a link.
ps: shouldn't it be called aFunction? :)
I have taken a look at a few other threads and noticed that someone
posted a bubbledFromChild function. This function isn't working for
me and I'm not sure how to get around this issue. I'm attempting to
overlay a div over another div which contains a few elements. The
problem is that the
Thanks kangax,
I tried renaming the names as you suggested but it's still the same
thing. In Firefox it works, in IE it doesn't. If I change the
following line:
Event.observe('events', 'change', function (e) {
To observe one of the input elements instead
Event.observe('event1', 'change',
I was using the wrong brackets.() not []
Working fine now.
Thanks for your help.
On Oct 30, 3:09 pm, T.J. Crowder [EMAIL PROTECTED] wrote:
Hi,
var arrpeople = transport.responseText.evalJSON(true);
alert(arrpeople.name); //this line doesn't fail but It
returns 'Undefined'
On Oct 30, 9:24 am, darrinholst [EMAIL PROTECTED] wrote:
How can I define private methods for tabs function, so that onclick
event handler can use this private function, instead of anonymous
one?
Is this what you're looking for?
Object.extend(Element.Methods, {
tabs:
Hi,
Just put 'class' in quotes, it's a reserved word in JScript. The
example in the docs[1] has it in quotes for that reason, I suspect.
[1] http://www.prototypejs.org/api/element
HTH,
--
T.J. Crowder
tj / crowder software / com
On Oct 30, 3:49 pm, Brandon [EMAIL PROTECTED] wrote:
Internet
On Oct 29, 12:50 pm, Diodeus [EMAIL PROTECTED] wrote:
After being annoyed by a Flash-based solution for the same
functionality, I decided to write a wipe effect for Scriptaculous.
It's in beta, and not quite ready for release.
new Effect.Wipe('content',{'newImg':'Images/Wipe3.jpg',duration:
Hi all, currently i am learning script.aculo.us.. and i have some
question on a bit of syntax here..
//css
#box {
width: 300px;
height: 300px;
position: relative;
background-color: #ddd;
}
//html
div id=box/div
//js script
new Effect.Morph('box', {style:left: 50px; top:
edit
$('box')..scale(150);
TO
$('box').scale(150);
and addition this...
//not working too
$('box').move({x: 125px, y: 150px});
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Prototype script.aculo.us
Internet Explorer throws 'expected identifier, string or number' when
it loads a JS script that contains a new Element statement, like this:
new_song_info_div = new Element('div', {class : 'song_info'});
It took me a while to figure out this was the issue too, because the
script debugger that
On Oct 30, 11:32 am, Dave [EMAIL PROTECTED] wrote:
Thanks kangax,
I tried renaming the names as you suggested but it's still the same
thing. In Firefox it works, in IE it doesn't. If I change the
following line:
Event.observe('events', 'change', function (e) {
To observe one of the
I'm using Effect.grow() to expand table rows in a fixed height div.
In Firefox, the div overflows properly and everything is fine. In
IE7, the all of the records grow past the bottom of the div
momentarily, then disappear behind the div. This brief flash before
the recovery looks
Try changing the way you position your element:
#box {
width: 300px;
height: 300px;
position: absolute;
background-color: #ddd;
}
div style='position:relative'div id=box/div/div
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
I think the problem is how tables are rendered, not because of the DIV
itself. They seem to wait until the rest of the page has rendered
before sizing themselves.
You can really see it happen in this example:
table border=1
tr
td width=50%nbsp;/td
Thanks was it. Thanks for the help. Though a slew of new IE issues are
popping up now, fun fun!. So it's probably a good and safe practice to quote
all the element property names, right?
On Thu, Oct 30, 2008 at 12:02 PM, T.J. Crowder [EMAIL PROTECTED]wrote:
Hi,
Just put 'class' in quotes,
Good idea. I'll add that in.
Thanks.
On Oct 30, 12:05 pm, kangax [EMAIL PROTECTED] wrote:
On Oct 29, 12:50 pm, Diodeus [EMAIL PROTECTED] wrote:
After being annoyed by a Flash-based solution for the same
functionality, I decided to write a wipe effect for Scriptaculous.
It's in beta,
HELP! This is the first time I have my script working for IE but not
for Firefox.
I have a 3 drop downs. The first dropdown dictates what will be shown
on the second. And second drop down dictates the third. I use
Ajax.Request() to get the drop down values from database. onSuccess, I
call the
Hi guys,
I'm learning the prototype library after coming from jQuery, and I'm
trying to write a simple snippet that opens external links in a new
window.
This doesn't seem to work in Firefox, or Safari, and I'm not sure what
I'm doing wrong here,
I'm sure it's something really obvious, but
I'm using a pretty basic example that works just find in FireFox but
does not work in IE 6 or 7.
Have a look at this sample (not mine, but is what I used to create my
code and I get the exact same problem):
http://www.gregphoto.net/sortable/advanced/
If you take, say 3 items and drag them into
I've developed a set of sliders using script.aculo.us that allows my
users to rate content. The sliders work perfectly. However, I'd like
set the sliders to be hidden by default and to only appear when the
user clicks a button. So I set the div that contains all the sliders
to display:none. I
Well, first of all, try quoting your hash keys like this:
list.each(function(item){
var newOption = new Element('option',
{'innerHTML':item.nm,'value':item.id});
selectList.insert({bottom:newOption});
});
If it still doesn't work, try
What's the error that the script's throwing?
Also, are the elements in the result enum already extended[1]? If not,
switch element.observ to $(element).observe.
[1] http://prototypejs.org/learn/extensions
Cheers
Gabriel Gilini
www.usosim.com.br
[EMAIL PROTECTED]
[EMAIL PROTECTED]
On Thu, Oct
On Oct 30, 2008, at 5:56 PM, rev_robert wrote:
I put the window.alert in the function to see if opt.postBody had the
plus (+) signs in it before the call to Ajax.Updater, which it did.
This is worrisome. Is there some documentation on which characters
Ajax.updater will pass through and
Well, that's weird. It could be a bug, you should probably fill a ticket
with some sample code and a copy of the error message at Lighthouse[1].
[1] http://prototype.lighthouseapp.com/projects/8886-prototype
Cheers
Gabriel Gilini
www.usosim.com.br
[EMAIL PROTECTED]
[EMAIL PROTECTED]
On Thu,
Hi Colin,
Really appreciate your input.
Sorry, I should've been more crisper with my requirement. Let me try to do
that:
When the user types in 'a', I still like the display of the drop down list
with contact name and email address one below the other. When I select a
contact from the list, I
On Oct 30, 2:30 am, T.J. Crowder [EMAIL PROTECTED] wrote:
The lost context is easily fixed:
sendState(email, $F('save-comments'),
sph.fire.bind(sph).curry(doneEvent));
bind() accepts additional parameters for the function, so you don't
need the curry:
sendState(
email,
Hi, I was inspired by
http://www.exit404.com/2005/57/unobtrusive-persistant-scriptaculous-effects
to create a menu that would expand and contract the menu whenever I
click on the menu header. Instead of using Effect.BlindDown and
Effect.BlindUp, I decided to use Effect.toggle to toggle the
35 matches
Mail list logo