Hi,
I have a hashmap that I have created to control the events for buttons. It is defined as so:
var Signage_Manager = {
init: function() {
Signage_Manager.buttonActions.set_events();
},
buttonActions: {
buttons: {
'#add_product': {action: 'navigate', href: '/manager/add_product'},
'.back_to_dashboard': {act...
The page inside iframe is loaded dynamically by javascript.
I use jQuery, so I tried like this.
var css2 = '<link rel="stylesheet" href="/inc/css/style.css" type="text/css"/>';
$("iframe").contents().find("head").append(css2);
This works fine with firefox, but not with IE.
Then I created dom and append it to the head tag manually wi...
Hi,
I'm new in JSON, but now I need to use JSON for my Flash ActionScript 3.0. So I found one lib for JSON and I have seen the terms Deserialize & Serialize what does that means.
...
Hi all,
I am trying to pass form name dynamically. But this script is showing an error.
"document.formName is undefined". How to solve this. Thanks in advance.
<script language="javascript">
function showAll(form,fieldName) {
var formName = form.name;
alert(formName);
document.formName.search_mode.value = "";
docum...
Hi,
I am new to here, but I wish someone can help me resolve the problem:
version: 3.5
OS: Win 7 64bit
JVM 1.6
I am using the javascript editor to write some code using YUI package, and seems it uses extremely huge amount of memory. Even when I put the mouse cursor on a variable, it will put up about 100M, so it runs to 1G very soon.....
Here is a useful page detailing the specification for the same origin policy in Mozilla.
Same origin policy for Mozilla
Does anyone know or have a link to information of how the same origin policy in IE6.
Primarily I would like to know if websites are operating from differnt ports then would they be considered to be from the same orig...
Hi,
I am trying to show a google map using the following code:
<embed height="400" width="600" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=110069293083852065946.00047e2506156dd8d127b&amp;ll=27.727526,85.310855&amp;spn=0.021197,0.038581&amp;z=14&amp;iwloc=00047e251edcecb28ba7c&...
hi
does sproutcore need backend? is it reliable as Java for webapps? or does it use only for client-side programming? what about apple's projects as iworks.com and mobileme.com? do they programmed by sproutcore and javascript only or use also something else for backend as Java (webobjects)?
...
When IE renders a filter: alpha(opacity=..) whether it's on an image or text. It looks bad.
Is there a way to make IE render normal-browser-like smooth opacity?
If no, how can I easily after a fadeIn (opacity x->1) javascript animation re-render the elements so it doesn't look bad anymore..?
...
Hi,
I like javascript, but I have problem with learning it :)
I mean, i use it at work but I would like to know more, and I think the best way to do it is to read and understand someone else's code.
I use ASP.Net MVC and there are some great opensource projects you can use to learn new technology, like NerdDinner, Oxite or SharpArchitec...
Hi I'm using ASP.NET MVC to try to postback after confirmation using javascript, this is the button:
<input type="submit" id ="RemoveStatus" value="Remove Status" name="button" onclick="return CheckRemove();"/>
This is my javascript in my CheckRemove() js function:
var button1 = document.getElementById("RemoveStatus");
if (conf...
Not a framework or anything, which AFAICS always carries with it a shipload of extraneous, irrelevant (from my POV) support code. I'm just looking for a couple hundred lines of bulletproof JS that correctly implements multiple simultaneous AJAX requests; error handling; and callbacks into my code.
Thanks!
-- pete
...
Hey guys,
I've got the following function
function make(point, name, message, type, file, id, lat, lng)
I want this function to pass all of these Javascript variables to a php file which would open in a window when a link is pressed how would I do this?
...
Anyone got any ideas?
The above error occurs when the following code is run:
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(RequestCompleted);
Within this block:
<script language="javascript" type="text/javascript">
var postBackElement;
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(RequestCo...
Hi folks,
cross-browser handling is quite a hassle sometimes.
In this case I need to capture quite a number of events, but cannot afford to use a multi purpose library that exceeds 10ish Kb. (e.g. jQuery, Prototype, Dojo, YUI, ...)
The script is meant as a basic tracking tool for various sites I'm maintaining.
Every browser seems to...
When i tries to bind a radio button in a datalist it becomes multiselect as its name property becomes different even when i used GroupName to be same.
How can i make it act as radio button only.
<asp:DataList ID="dlRoomNo" runat="server" RepeatColumns="4">
<ItemTemplate>
<div class="orboxfour">
<ul...
Hey guys,
I've got the following variable declaration..
var html = "<b>" + name + "</b> <br/>" + message + ' <div align="left"> '
+ '<a href="path/to/php? id='+name'&message='+message+'&id='+id+'&lat='+lat+'&lng='+lng+'&type='+type+'" target="_blank">Click me!</a>'
+ ' </div> <form name="myform" action="delete.php" method="P...
Hi,
I have an array that contains 10 elements, each element contains " ".
How do I create a string of spaces, like this:
" "
in javascript or jQuery from the this array?
Thank you
...
HTML:
a#myname
div#tooltip-myname
a#yourname
div#tooltip-yourname
jQuery:
$('#myname').tooltip($('#tooltip-myname'));
$('#yourname').tooltip($('#tooltip-yourname'));
How do I automate the tooltip container part so I don't have to manually enter '#tooltip-myname' '#tooltip-yourname' and so on with each tooltip?
Thanks!
...
I am executing a cgi file directly from javascript onclick of a button. The cgi return the doc, xls, exe etc file which in turn opens SavaAs dialog to let the client save file on his machine.
Problem comes when multiple cgi files are executing in a for/while loop, It executes only the first cgi and opens the SaveAs dialog, but once the S...