Hey All,
Right now I'm using SharePoint Designer to create a new aspx page. I am using a data view to display information from a list. One of the fields in the list is a choice field. I was wondering if there was anyway that I could display all of the other fields but allow one field in the list to be edited on the page without adding a...
I'm reading the Google Maps API and it states that the:
"callback: The function to call once the script has loaded. If using the Auto-loading feature, this must specify a function name, not a function reference.
What's the difference been a JavaScript function name vs a function reference?
http://code.google.com/apis/ajax/documentati...
Creating a separate PopupWindow that opens another web browser give me as return value a HtmlWindow object that is the same object type as the static "HtmlPage.Window" of the silverlight project. That object type provides the "Invoke" and "Eval" methods.
I want to evaluate a javascript that can be located on my Silverlight code in a str...
I am using Google Maps v3.
I'm currently using the autoload functionality and it's working great:
<script type="text/javascript" src='http://www.google.com/jsapi?autoload={modules:[{name:"maps",version:3,other_params:"sensor=false"}]}'></script>
Now I want to use the autoload to also include the callback option to callback m...
Hi - this is my first post and I'm a JS novice, so please forgive my ignorance...
Heres my question, its in two parts:
1.) At onunload I want an alert that asks the user if they would like to go to a related URL. The code I'm using works, but it open the URL in a new window and this can be blocked by a pop-up blocker even though the us...
I try to perform calling of a javascript function from actionscript 3.0 thru
ExternalInterface.call().
I've seen a lot of online examples where the method works perfectly. But all downloaded copies of the examples don't work. Flash player can't call javasript due to the swf-html container security problems. I've already tried to set allo...
I am wondering if there is an easy way to keep this popup window (span) JPicker (built on JQuery) on top of other modal windows or divs? Zindex, is there a way to make sure the zindex is always on top?
Thanks
...
Hello, Does anyone know how to open a browser window from a child window?
On my main window I'm doing a window.open(.....). But then from this child window I want to open another child window, but its not working. I mean the problem is that the window opens on the first child.
Any ideas?
Thanks.
...
I want to use document.createDocumentFragment() to create an optimized collection of HTML elements that contain ".data" coming from jQuery (v 1.4.2), but I'm kind of stuck on how to get the data to surface from the HTML elements.
Here's my code:
var genres_html = document.createDocumentFragment();
$(xmlData).find('genres').each(functi...
Hi,
I want to use a tool for tooltip/preview image.
And here is my choice: http://james.padolsey.com/demos/imgPreview/full/
A very nice tool for image preview.
But I should use without "a href" tag, with onmouseover(); function.
For example:
<img src="small_image.jpg" onmouseover="imgPreview('big_image.jpg');" alt="" title="">
or
...
A coworker showed me the following code and asked me why it worked.
<span id="myspan">Do you like my hat?</span>
<script type="text/javascript">
var spanElement = document.getElementById("myspan");
alert("Here I am! " + spanElement.innerHTML + "\n" + myspan.innerHTML);
</script>
I explained that a property is attached to the window ob...
Hello guys,
A quick question: how do I programatically select the text fragment of the page in FireFox? For example, there's a paragraph of text, user clicks the button and symbols from 10-th to 15-th are selected as if user dragged a mouse in a regular way.
...
I have several javascripts at the head of my document, as well as at the bottom, near the body closing tag. I use jQuery to call an ajax element into place and the elements that are called, require these javascripts to function. How can I include these javascripts to work with the ajax call?
Example:
jQuery(document).ready(function(){...
How do I embedded a HTML-enabled javascript editor on top of Flex web application?
FCKEditor is not free but any free editor with basic toolbar will do?
...
I'm downloading JQuery asynchronously:
function addScript(url) {
var script = document.createElement('script');
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
}
addScript('jquery.js');
// non-jquery code ...
// jquery specific code like: $()...
As such - how do I call my JQuery specific c...
On the Google and Yahoo search pages, the URLs of the 10 search result links actually point to google.com or yahoo.com. The URLs have extra arguments that allow google.com or yahoo.com to redirect to the actual search result when the link is clicked. When the user mouses over the link, the search result URL (and not the google.com or y...
I'm using this nice printing script:
<script type="text/javascript">
function PrintElem(elem)
{
Popup($(elem).text());
}
function Popup(data)
{
var mywindow = window.open('', 'my div', 'height=400,width=600');
mywindow.document.write('<html><head><title>my div</title>');
/*...
I am trying to create Facebook based login using Javascript. Once a person clicks a button he should get a div replaced by another div, if he is logged in to Facebook. However, if he is not logged in to Facebook he is asked his Facebook credentials and he logs in. However, we need the user to click the button once more for the div replac...
I'm running into a little hiccup with my AJAX creation of comments for posts. Everything works great but I am doing this in the index.html.erb view so the create.js.erb is finding the first div that says "comments" and inserting the comment there.
I know how to create a post specific div by using:
<div id="comments_<%= post.id %>
B...
I have a function that issues an AJAX call (via jQuery). In the complete section I have a function that says:
complete: function(XMLHttpRequest, textStatus)
{
if(textStatus == "success")
{
return(true);
}
else
{
return(false);
}
}
However, if I call this like so:
if(callajax())
{
// Do som...