Similar to iTunes' 'Link Maker' (http://www.apple.com/itunes/linkmaker/faq/). Through web browser, iTunes webpages is capable of finding out if itms:// has been registered on client workstation, hence displaying correct message ('View in iTunes' button or 'Download iTunes' promotion banner).
How is this conducted?
...
I have the following php code
$bigImageSrc = 'images/'.$prodXML->bottles->bottle[$i]->bigImage;
$text = $prodXML->bottles->bottle[$i]->title;
$title = $prodXML->bottles->bottle[$i]->text;
echo "<a href=javascript:void(0); onClick=showProduct('$bigImageSrc', '$text', '$title');>
but I'm getting this error:
syntax error
showP...
Hi,
I have a an iframe that has a report within it. What I also have, is a feature to allow the user to detach the report within the iframe and open it up in it's own window, using window.open() call.
My problem is, when I press on the detach button, the whole report that initially loaded in the iframe actually goes through the motions...
I want to understand how event binding/unbinding works in browsers. Specifically, if I remove an element that already has an event bound to it, using for example jQuery: $("#anElement").remove();, will the bound event get removed as well?
In other words, if I don't unbind() the event first, am I creating some sort of memory leak?
Edit:...
I have a web page with 3 links. 1 of the links is hidden by a parent div that has display:none. When I hover over another div however, the hidden div will be shown thereby revealing the link. How can I tab through all 3 links and get link 3 to display automatically when i tab to it?
<html>
<head>
<title>Skype Home</title>
<meta ...
Hi,
i have a little problem with Codemirror (http://codemirror.net/manual.html)
My code
$(document).ready(function ust()
{
pa_textareas();
});
function pa_textareas()
{
var textarea = document.getElementById('ta_1');
var editor_1 = new MirrorFrame(CodeMirror.replace(textarea), {
...
I have a nested unordered list representing a tree hierarchy. There can be many deeply nested ul tags in the unordered list. Very simple example:
<ul>
<li><a href="#" class="allowed">Link</a>
<ul>
<li><a href="#" class="allowed">Link</a></li>
<li><a href="#" class="allowed">Link</a></li>
</ul>...
Hello All,
I have this increasing interest in web OS. I want to start building my own. But I am at absolute zero position. I went to websites of XIN, EyeOS, YouOS to gain some initial idea. Still exploring...
Can someone tell me about how can I do scratch start. Like system requirements, technologies one should be using, some referenc...
Hello,
I have a website that uses ajax jquery and facebox.
Demo here : http://temp.nevergone.eu/facebox.php
Inside the div "#content" there are some links to other pages that open fine using facebox.
If I reload the content of that div using ajax jquery , then the links wont popup using facebox effect anymore.
I tried to create a funct...
how to change the object_id while adding row dynamically using jquery
eg:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("#addPerson").click(function(){
$("#user tr:last ").after("<%= escape_javascript(render :partial => 'user_new', :locals =>{:user_new => User.new}) %>");
re...
Here's a canvas app I come across : canvasphoto (uses YUI 2 I believe, which I haven't used before). It displays images on a canvas and it lets you resize/move the images across the canvas. What I want to do is to add a close button on the top right side of the images drawn on the canvas and have it trigger an onclick event when clicked ...
Hello,
I am facing a error in javascript....
when the javascript function calling it is not working but if i set a alert('someting'); within the function then the script is running but if i comment off the alert within the script,
is not working.
what is the solution.......
...
I am trying to find all tr elements inside a table element. The table element it self has other table elements nested inside its rows. So when I do the following:
$(tbl).find('tr').hover(...);
...it picks up tr elements inside the nested table elements also. I just want the immediate tr elements of the table element I am trying to que...
Hi!
I want to do the following with my javascript codeblock.
Handle all current and new device requests ie. detect,encrypt,decrypt,etc
Return the result to the calling method
Questions
How can I improve the existing code and get rid of the javascript strict warning:anonymous function does not always return a value.
What is the r...
Hi!
I'm developing a PHP application that uses HTTP response codes for communication as well as response bodies.
So this is a typical scenario in the PHP code:
try {
doSomething();
} catch(Exception $e) {
header('HTTP/1.1 500 Internal Server Error');
}
... and the typical code in clients looks like:
switch(re...
Hello there
I am using Quick time via javascript so that I can play video on my web browser. I want to resize the video so that it fits the size of the DIV. The problem is that when the player launches the video the size of the DIV remains the same but the player gets out of the DIV. I want the size of the DIV remain the same doesnt mat...
Is there some sort of event for IFrames that only fires when every resource (script, image, stylesheet, dom) has loaded? Basically I want to have a loading graphic displayed over the IFrame and only remove that when everything is loaded inside so the user doesn't see everything loading.
Currently I am using $(iframe).ready(function() { ...
Hey guys,
recently I've installed the FireGestures plugin for Firefox, which I find very useful.
You can also create your own scripts using JavaScript.
I want to create a script that simply scrolls to the top and then reloads the page.
Sound simple, but I couldnt figure it out.
In FireGestures' help page it says "Of course, you can us...
I need:
1) Get data from server by button click. (can ajax)
2) Execute some js depending on the received data.
3) Show standard "File save as" dialog.
It must work in IE7/IE8/FF.
Thanks! And sorry for my crooked english =)
...
hi i'm trying to build an rss reader using javascript. everything is up and running except the hyperlinks. I need to pass a variable that will hold the url for each list item. any advice would be appreciated. thanks.
xml ---------------------------
<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>...