javascript

Sharepoint Rich Content Editor munging HTML added from custom toolbar button

Summary: What I'm trying to ask - are we going about this the completely wrong way, or, is there a way to stop Sharepoint, or its rich editor, from munging the HTML which gets added? I've been 'dropped' into a project revolving around Sharepoint 2007 (trust me, I'm not entirely pleased about it), and one of the things that is sought aft...

Temporary Storage in FireFox Extension

I've developed an extension that creates alot* of data during a browsing session. Think, 2 to 3 times the total HTTP traffic (images, HTML, etc.). Currently I'm just stashing all of this in a Javascript variable, but this obviously isn't tenable if the extension is going to get any serious usage. So, the question is, where should I st...

Response.Redirect Word Document Glitch?

I come a desperate and broken man.... I'm developing a corporate intranet / search engine application. When users open a document, my ASP.NET code records the action to the Windows Event log, and then issues a "Response.Redirect" (for security/audit). Process is: - User clicks LinkButton "Open document My Document.doc" - Postback ...

document.body not working in IE on a page that has been redirected to?

Hello all, hoping you can help with this. I have a link that redirects to a page on another one of our sites However, when this redirect happens, I get a "document.body is null" error from JQuery, and a similar error from SWFAddress (_d.body is null); but only in IE. However, when I enter the redirected to URL directly in IE (aka sans...

Automatic slideshow is not showing properly

I have an automatic slideshow on the main page of some site. Images are rotating every 10 seconds, but when they appear for the first time they aren't already loadead (I guess), so a blank is show. I think that preloading these images they will show fine, but I don't know how to preload them. I use the following code to preload all the ...

Changing <object> paramaters at page load in IE8

I have a plain html web page with an embedded flash object. Based on presence of a query string, I want to vary one of the paramters to the object, so I wrote something like this: <object ...> <param ...> <param ...> <script type="text/javascript"> if (window.location.search.indexOf("stuff")>=0) { document.wr...

How to inject script to listen for activeX events?

HI, I've trying to listen for events fried by my ATL object. I find that if I include a script as follows directly in the HTML of the page it picks up the event correctly. <html> <head> <script event="genericScriptEvent(param0, param1, param2, param3, param4, param5, param6, param7, param8)" for="CMyControl" type="text/javascript"> ...

Why isn't shadowbox working in IE?

The shadowbox I am trying to fix in IE is located here: http://www.carolinedawes.com.au/abc-gardening-australia.html The HTML is <div class="hero-image"> <a href="m/abc-gardening-australia-caroline-dawes.mov" rel="shadowbox;height=272;width=480"> <img src="i/abc-gardening-australia-caroline-dawes-gardening-adelaide.jpg" alt="caroline ...

Replacement for YUI grids in YUI3?

YUI3 deprecated cssgrids, but I don't see a replacement API on the site. How does one layout grids when using YUI3 (in future -- for now, I can use yui2 grids of course)? ...

How to determine event of textbox when selected from the autocomplete list in javascript?

Hi all, how to determine the event of a textbox when the item is selected from the autocomplete list in javascript? my requirement is, i have a textbox and a button. initially button will the disabled. onkeyup event i am enabling the button. this works pretty cool.. but here is the tricky part... when the user is selecting some item from...

codeigniter javascript

Did Codigniter have inbuilt javascript lib? else what javascript framework best for Codigniter ...

[HTML / JavaScript]:

In my HTML file, I have a JavaScript function named "CheckCaptcha". I am using following code line to execute that function when an image is clicked. It is not working. After hours of tweaking and modifying the code, it is not simply reaching to the location where the JavaScript function lies. I am using this code line: <input type="im...

problem with jquery and ie and loading images

I have a web page that consists of three parts, script, style and body. the body is just tables of images - the problem is that when you first load the site all the images load one on top of the other - a real mess. The images should all be invisible and only appear when certain words are clicked - this is all done with javascript. On...

is it possible to read something.properties using javascript ? (in a .hta file) >> to read in Selenium

I am using Selenium to do testing, We write our test cases in html files and make test suites out of them, our requirement is to write test cases that are robust enough to change themselves as per the test environments. for this, I prefer not to enclose specifications such as urls to open, text to search for on screen, etc in the html s...

"Access denied" when tring to open a file in client side.

I a developing a web application in c# in which i am using the below code. Am getting "Access denied" when trying to open a file in client side. String strPop = "<script language='javascript'>" + Environment.NewLine + "window.open('C://myLocalFile.txt'," + "'Report','height=520,width=730," + ...

Comparing the following special character in JavaScript is returning inappropriate result?

There is a case when I receive a string with the following special characters in it: <!@#$%^&*()_+|}{":?></.,';][=-`~DS0> While performing a compare operation on this string using the double equal to (==) operator in JavaScript it is not yielding the appropriate result. Although both the strings contain the same specified string the ...

How to find a value in web page between square brackets using JQuery?

hey, I have the following scenario: I have 5 possible values on a page: [value 1] ... [value 5] What I want to do is grab each value and brackets... Example Content: <p>velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitatio...

URL Rewrite and JavaScript QueryString fetching.

I'm using code in the Application_BeingRequest() handler of my Global.asax to do some very primitive URL Rewriting. That works fine, however I'm having issues fetching the rewritten url in JavaScript. So using URL Rewriting 'www.mydomain.com/dothis' becomes 'www.mydomain.com/?action=dothis' on the server side. Using ASP.Net and Request....

open a window from a existing page in firefox gives me security error

Hi, i am developing a firefox extension, On a client side of a web page i add a link and on clicking the link i intend to open a window where it will allow the user to type in text. when i click the link, it opens the window but it won't allow me to write to it. e.g. ww.document.write('<div id = "textDiv">') ; here it gives me an erro...

how to convert the datetime specific to browser's settings in Javascript?

Hi, I am using jquerry to display the calender to pick the date in my mvc application. i need to display the date in the converted format depending upon the browsers settings. if its newzeland, then i need to show the dateformat based on their language. how to do this? below is my javascript $(function() { $('#StartDate').datepicke...