I've been thinking of an interesting project for learning javascript better, and decided I would have a go at creating a heatmap to show visitor activity on a site.
I have already written something which works out the percentage share of each link, but now I want to create something similar to that of the crazy egg heat map.
I just need a couple of starting pointers... to work out where a user clicks on a site, regardless of whether it is a link or not, i.e they click on a pic thinking it is a link or something, do I need to use coordinates?
Also, does anyone have any pointers on how to create the infrared style imagemap overlay?
I have a problem getting the following simple example of "document.write" creating a script on the fly to work in all html browsers.
It works in I.E., Firefox, and Netscape 7 above. It doesn't seem to work in Netscape 4. Am I missing something with it? When I look at page source in Netscape 4 the script isn't even shown. Code:
I'm trying to create a function in JavaScript using Dreamweaver8 such that when a user hits the ' F1' key when a text box is selected a separate "pop-up" window will open, with text of my choice.
Does anybody have any pointers or even some source code? I use ASP on my server.
how you would piece together a variable name and then assign it a value. I want to create a hidden field and assign it a value based on the value of another variable
rote a bunch of Javascript classes for this framework I'm working on and want to be able to create instances of the class using just it's name string. For example: Given the following class
I am writing a function that alerts a user that they did not enter a password what change do I need to make to this code to correct my issue it isn't doing anything.
I have the last assignment that she wants us to do and I had to pull up another assignment that she wanted us to build upon( which is one of those coding without anything advance)
<html> <head> <title>
[code]....
now she wants us to do max <beta and then name the variables with if a<b and I don't know if I put that in the concatenation or what to name my variables!
i am fairly new to JS for which i am working jQuery but that is for later.right now i am not getting my table printed out when i put input type="text".
here is my code
[Code]...
moreover i m writing this code to later call in a dialog box. using jQuery. but for now why isn't my code being printed with input type. do i have escape "" inside "" like in php? can i make more hierarchy type html in JS, i see when i put the td in next line the code doesn't execute. i guess white spaces have some significance in JS?
I need some help creating a script. Forgive me for posting this in multiple forums, as I first posted this in the php forum, but I know it can be done with a client side javascript as well. So here goes. I need to create a form where I can paste a list of domain names, click submit (or even just on mouseout, etc.), and have the script then return me to a page (or update a select field on the same page) with the domain names formatted within html code hyperlinking to the name. For example, if I were to paste a list of
then click submit (or move my mouse out, [we're talking javascript here, right...]), it would return the following results, ready for me to then paste into my webpage:
I'd like to create a simple menu that when I mouse over one of the menus, the sub-menus show up below the main menu. Kind a like pop-down menu, except the sub-menus show up horizontally below the menu.
Menu1 Menu2 Menu3 | Sub-Menu1 Sub-Menu2 Sub-Menu3
I have searched a number of javascript sites to find such a code with no success. I suppose I could try to adapt a pop-down menu into this, but my javascript's knowledge is quite limited.
im need to create s simple CMS/WYSIWYG, but im not a pro on js. I found one on a website, but i dont want to resort to stealing codes.
basically, theres a textarea, where you put in text, and a button for bold, italics and underline, etc. if i highlight something on the textarea and hit the bold button, the text automatically gets surrounded by the <b></b> tags, or or whatevers convinient. when i look at the inline js code from the button, it calls a function, but id rather simplify the code, it should be something like onclick=insertstyle("b","textarea_name");
I'm using the following code to create a quick and dirty search tool for a site we're building at work as part of an RFP.My issue is that rather than creating a new window for the results page (which is what it does now), I'd really prefer that a new div be dynamically created on the page where the results would be placed.Maybe that's not possible? At the very least,how to make the results display in the same window rather than opening a new one?
<SCRIPT LANGUAGE="JavaScript"> var item = new Array(); // "Page Name","path","Page Title","Many,Key,Words","Descriptive Comments"
I created <a> tag dynamically and attached event to it.
Code:
var link = document.createElement("a"); link.setAttribute('class','devNodeStyle'); link.setAttribute("title",device); link.setAttribute("href","javascript:void(0);"); link.attachEvent("onclick",openDevDetailWindow);
"attachEvent" is working only in IE. How to make that working in other browsers like Chrome/FF?
I would like to create a box with the same behavior as the "To" field in the gmail "Compose Email" page.
That is a simple text box but when you start typing it will suddently show a list of all the e-mails (for our purpose any string would do) in my address book that have the given substring in it.
E.g. if I type in "ga" I get all the e-mails where the "ga" substing shows up.
Then I can select from the list and press enter on the requested address or I can keep typing if the address is not in the list yet.
I am trying to find a way to load XHTML content in an Iframe.
I use to do this in html by using the following code :
var iframeObject = document.createElement("iframe"); MyDiv.appendChild(iframeObject); var data = "<html><head><title>testing</title></head><body>data</body></html>" iframeObject.contentDocument.open(); iframeObject.contentDocument.writeln(data); iframeObject.contentDocument.close();
This works fine. I can create my content dynamicly and synchroniously. No problem.
No I try to switch to XHTML, but have trouble getting th eiframe to understand that it gets XHTML data. It simply assumes that the data is "text/html". I tried to add the contentType with the .open() arguments:
var iframeObject = document.createElement("iframe"); MyDiv.appendChild(iframeObject); var data = "<!DOCTYPE html PUBLIC "-//W3C//DTD ..etc.. transitional.dtd">" + "<html xmlns="http://www.w3.org/1999/xhtml" > etc etc </html>"; iframeObject.contentDocument.open("application/xhtml+xml", true); iframeObject.contentDocument.writeln(data); iframeObject.contentDocument.close();
The code runs but the content is not seen as xhtml, so I can't mix html and xml. Someone gave me the hint to use the following:
I am using telerik autocomplete in my application, I want to create the another autocomplete when i click the add button using jquery, can any help me in solving this issue.I need the jquery to create the autocomplet.
document.createElement('span') Because I'm trying to attach a stylesheet using jQuery. So far all I've found is the add() method, so I've put this together: $(document).ready(function() { $('head').add('link').attr('type', 'text/css', 'href', 'script/fancybox/jquery.fancybox-1.3.1.css', 'media', 'screen'); })
But the element will not get added, I presume it's meant to go before the ending '</head>' tag?
I have this code that when just enclosed in a <script> works:..dto = new window["imenus_data"+(x2=x2.substring(6))];but when i put this code in a class and access the function: