Problem 1
Error: Microsoft JScript runtime error: '$.fn' is null or not an object
Error area:
$.fn.apply=function(item,content,header){
$(".featureBox"+item).css('z-index', "1000");
$("img.featureBox" + item +"top").attr("src",basepath + "box-big-top.jpg");
$("img.featureBox" + item +"imgcut").attr("src",b...
Hi, i'm just starting prototype, i was on jquery before.
I can't find easy examples on the internet about how :
Selecting all elements having the same id on a page
(i'm doing this but it only works for the first element : $('mydiv').hide() )
Selecting a div that is contained in another div by their id.
hiding all elements that have...
I didn't use Prototype.js before, when I use jquery, I can get an element value like $("#inputA").val();
Is there an equivalent method in prototype like this? I use $("inputA").getAttribute('value');, which is very verbose.
...
I have 3 divs that contain radio with labels and beneath each radio button I would like to show/hide a form based on whether the radio is selected or not.
Code idea:
<div id="radio1"></div>
<div id="form1"></div>
<div id="radio2"></div>
<div id="form2"></div>
<div id="radio3"></div>
<div id="form3"></div>
Using prototype does anyon...
How to make simple working (only if i remove/comment prototype) example to explain jQuery.noConflict() with prototype?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-...
Hello, currently working on magento and managed to remove certain sections from the check out process that are not needed. Anyway the last section I want to remove is the order review so essentaly instead of Billing Address > Review > Comfirmation. I just want Billing > Comfirmation. Anyway with in JS I can do this?
My current idea is t...
A bit of a basic question but how may I check if a anchor is in the url when I load the page?
For example www.mysite.com/mypage#show
And then in the JavaScript I can go if #show exists do this
Thanks.
...
Hi, I am a Javascript/jQuery/Prototype newcomer and I have a page that has a Prototype function to get info from a database and put it into some input fields. This was made before I came to work on this site and now I've been asked to add a hide/show div function.
I tried it in jQuery and there were clashes with the two frameworks, (as ...
On my new customer page, I have successfully implemented a jQuery show/hide toggle alongside a Prototype script using jQuery's .noconflict. (Thanks to all for answers!)
But as the world of the net is, IE's not playing ball.
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript">
</script>
<script type="text/javas...
Ok, i saw some other posts about this sort of thing, but not exactly related.
This is not what I want to do, but need to do unfortunately.
We have in this order right now
Prototype 1.6
jQuery 1.2.6 with noConflict on jQuery with j
I need to add jQuery 1.4.2 in that mix as well. It will always be the last one loaded. No option.
I...
Hey everyone,
I've been trying to use http://livepipe.net/control/tabs
to get some javascript tabs up and running on my rails up.
I'm really just trying to figure out how to install this... and I don't see how I'm running into any issues at all.
Here are the steps I've taken:
put tabs.js in my scripts folder
made sure the layout is...
I want to get the name of a certain tag (to tell whether it is a div/input/span/p/so on)
I found that there are 3 different attributes that give me the tag name:
tagName, nodeName, and localName
My question is: Which one is the most supported in all browsers? And/or is there a method to get the tag name in Prototype (I looked but coul...
function FakeClass(){};
FakeClass.prototype.someMethod = function(){};
FakeClass.prototype.otherMethod = function(){
//need to call someMethod() here.
}
I need to call someMethod from otherMethod, but apparently it doesn't work. If i build it as a single function (not prototyped), i can call it, but calling a prototyped does not ...
I want to use auto-completion in a number of fields (5-7) in my forms. There is a screencast on auto-completion with Prototype library by Ryan Bates ( http://railscasts.com/episodes/102-auto-complete-association). On the other hand, I have noticed that quite many guys suggest jQuery for this task ( http://jquery.bassistance.de/autocomple...
I am developing some JavaScript that should work with either Prototype.js or JQuery, thus I need some way to identify what is the primary library in use. How can I do that?
...
I am working on Ruby on Rails application, with Prototype.
I want to display a loading div automatically with every ajax request and hide it on completion, without writing code for every ajax request in my application.
Is there anyway to do this.
<div id="loader">Loading...</div>
...
Dear all,
I am in the middle of the road whether to use jQuery UI or Scriptaculous for drag and drop. I am using Ruby on Rails, and Scriptaculous support in Ruby on Rails is superb with the existence of scriptaculous_helper.rb. But I have already use jQuery for the ajax and DOM manipulation. I do not mind to use scriptaculous since we c...
Hi!
Is it possible to extend the DOM of a new window that I opened, using something like this:
var newWindow = window.open('about:blank', 'testWindow', '');
Element.extend(newWindow);
I thought Element.extend would work.. But I done see any refference to prototype in the DOM.
Any ideas?
Thank you!
Morten
...
I want to perform "deep copies" of an STL container of pointers to polymorphic classes.
I know about the Prototype design pattern, implemented by means of the Virtual Ctor Idiom, as explained in the C++ FAQ Lite, Item 20.8.
It is simple and straightforward:
struct ABC // Abstract Base Class
{
virtual ~ABC() {}
virtual ABC * clo...
I am trying to add the ajax response text, to a div that has a class on it, and not an id. I try the following:
var notice = $$('.testdiv');
Element.update(notice, transport.responseText)
This doesn't work but if I change it to update an element that has an ID on it, it works.
var notice = $('testdiv');
Element.update(notice, transpo...