What I want to do is replace all instances of 'old' in a webpage with 'new' in a JS bookmarklet or a greasemonkey script. How can I do this? I suppose jQuery or other frameworks are okay, as there're hacks to include them in both bookmarklets as well as greasemonkey scripts.
...
In one of my projects I have used input[type="button"] to apply a style to all the buttons. It works fine in all browsers except Internet Explorer 6. It doesn't style the buttons.
Is there a solution for this, like creating some class for the button and applying it to all buttons?
I want to apply that class to all buttons but not manua...
I'm having an image inside a div. I want to show tooltip1 on mouseover div and tooltip2 onmouseover image inside the div. How to acheive this?
<div id="_div1" runat="server">
<ul>
<li class="right">
<asp:Image ID="img1" runat="server" />
</li>
</ul>
</div>
_div1.Attributes.Add("onmouseover", "javascript:ShowTooltip('d...
Hi All,
I am a beginner in using Prototype library. I want to know how we can pass multiple arguments to onSuccess/onFailure function in Prototype?
For example:-
new Ajax.Request('testurl',{
method: 'post',
parameters: {param1:"A", param2:"B", param3:"C"},
onSuccess: fnSccs,
onFailure: fnFail
})
In my success function fnSccs...
I have an HTML page, which performs the following actions (in order):
Shows static HTML content
Replaces some of the static content using JavaScript
Loads an ActiveX component using JavaScript
The problem is that step 2 is always executed after step 3, even though the code to display the ActiveX component is after step 2 (and loading...
I have some code that runs when a user clicks anywhere in the body of the web page. I only want the JavaScript to run if the click is on a NON-LINK. Any ideas?
Thanks
Mike
...
Hi,
I tried to get the facebooker gem to work with jQuery, but it does not even render the facebook connect buttons, once I load jquery.js instead of prototype.js and use
init_fb_connect “XFBML”, :js => “jquery”
I tried it with the example
http://www.madebymany.co.uk/tutorial-for-restful_authentication-on-rails-with-facebook-connect-in...
Hi,
I am having difficulty setting up a simple html file using javascript to display the results of YQL Query.
I understand how to setup the select statement (example: select title,abstract,url from search.web where query="pizza") in the YQL Console. But I don't know how to display it on the html file?
Can somebody help in explaining ...
Has anyone implemented an ‘increase, decrease text size’ java script function in a Sharepoint web site?
I’m attempting it using the getElementByTagName and getElementByID functions but they don’t seem to be doing much and behaving very oddly - by not selecting the correct tag at all.
All the examples on the web have really simple marku...
I used a image gallery engine called prettyPhoto.js to a wordpress site that I was creating. However, for some strange reason the image gallery seems to have completely stopped working and I can't for the life of me find out how to rectify this problem (without explicitly going through the entire site and stripping out the rel="prettypho...
I have some javascripts that I am using in my files. But when we view the source code it shows our javascript as it is. Is there any way with which we can hide our javascript from showing up in the browser using php.
...
I have written the following regular expression. It should match only filenames or folder names that don't end in .aspx.
ValidationExpression=".*[^(\.aspx)]$"
But it does not work. So, kings of RegEx land, please help. I would also like to invalidate extensions such as .Aspx, .aSPx etc. ( I quickly learned that there are some differen...
Hi,
I'm creating a web application which uses jQuery to modify and HTML to represent the data. There can be several representations in the document related to a single data node. The user can dynamically create them.
For example, data will be represented and can be modified in tables. Additionally the user has the opinion to extend a "q...
I have some simple javascript that as far as i can tell should work but doesn't.
The code is below
var presenter = new Practicum.Web.TEI.StudentPlacement2009.CreateLetter_class(); //this is a class generated by Ajax.Net
function GetLetters() {
var GetLettersParams = new Object();
GetLettersParams.TemplateType = $('#LetterTypes...
Does anyone know where I can find an example of some javascript code for the new location-aware features of Firefox 3.5?
...
I am creating a UI in which users have the ability to change color values of their pages. What I would like is to take the value assigned to their background color and lighten it a certain amount. I am just looking to achieve a highlight line without having to make new images every time.
Example: The user set the background color to #E...
Hi,
I'm looking for a dijit widget which works like a normal html select (combobox).
all dijit widgets i found until now, have an editable text box.
I prefer to have a drop down box only and no editable textbox.
<select name="aCombobox">
<option value="1" selected="selected">Hund</option>
<option value="2">Katze</option>
<o...
Hello everyone,
I was wondering if there was a way to send a referer with a http-request though it is turned of in the browser (e.g. with javascript)?
The problem I have when the referrer is not sent:
I am trying to minimize the changes of attacks, so whenever a page is loaded I am changing the sessionkey ... the sessionid stays the s...
I have an admin page for a store where a user can modify item data. I'm trying to implement something for the admin to add and remove images by dragging them to and from a div.
I can submit the data just fine until I add the "images" object to the mix as follows:
$("#saveButton").click(function() {
$("form *, button").attr("disabl...
I want to change the size of the images in javascript onmouseover.
Dim files As String() = Directory.GetFiles(Server.MapPath("~/Folder1/Folder2/"), "*.jpg")
For Each File As String In files
File = File.Substring(File.LastIndexOf("/") + 1, File.Length)
'Response.Write(File & "<br>")
File = File & "~/Folder1/Folder2/"
D...