javascript

How to simulate click on (x, y) point of HTML document with Yahoo UI (JS) ?

DOCS http://developer.yahoo.com/yui/3/event/#eventsimulation . but I do not understand how to do it( So how to simulate a mouse down at point ( X, Y) in the client area of some HTML Object with YUI? ...

jquery ajax form - how to get the redirect url ?

i'm using ajax form jquery plugin to submit a form (in a dialog) via ajax. this works fine and then i get the html response back from the server. the response comes from a standard redirect-after-post php page which i cannot modify. is there a way to obtain the url of this redirect (the final GET location) using jquery (inside the aja...

no resizable in popup window dont work in firefox

i try to open new window with javascript window.open func, and add 'resizable = no' parameter, in ie its work , but in firefox it allow to resize how can i block it in firefox ? thanks. ...

Combining MicrosoftMvcJQueryValidation and Ajax Submit

Hi all, I'm having troubles trying to apply MS JQuery Validation in my forms where I want to submit data via an Ajax call. I am using DataAnnotations and MicrosoftMvcJQueryValidation.js library to perform client-side and server-side validation. Server validation works great and I'm trying to enable Client validation by mean of <% Htm...

Generating Drop Down List

I have a list of a href's and I would like to create a drop down list from it. How can i accomplish this without using jQuery? I'm new to javascript... ...

Cant figure out how to return the callback function - need alternative solution

Hi there. Im trying to return a callback value after the data is loaded, Im probably looking at this all wrong. var loadFromDatabase = function(callback){ if (!obj.data.myarray) { // the problem is here, the jquery obj returns the ajax request obj return $.getJSON('http://validjson',function(data){ obj.data.my...

Crystal Report Best Practice Question

Hello All; I have got a task regarding parameter passing to Crystal Report via Crystal Report, I would like to find best way to achieve it. Imagine that I have got parameterized and non reports-parameterized. I am developing a report manager that will enable users to subscribe to the reports and schedule them with their parameters. I h...

What is the use of raisePropertyChanged Event?

I couldn't understand the purpose of this event from official documantation. It's commonly used developing controls with clint support (IScriptControl). get_highlightCssClass: function() { return this._highlightCssClass; }, set_highlightCssClass: function(value) { if (this._highlightCssClass !== value) { ...

javascript jquery file opener

Hi all, i was wondering if anyone knew a quick solution to my problem. I want to be able to open a folder on users screen pretty much the same as but just opening up the my computer folder so a user can drag a file onto the browser screen. anyone know how? ...

Javascript authentication

Hello, are there any solutions to implement REST authentications for clients using only Javascript? Because the Javascript code is always readable by anyone. I've read many posts about REST authentication here but didn't found any ansers. ...

Call a JavaScript function from C++

Hello, I have a CDHTMLDialog, with which I have 2 HTML pages and a .js file with a few fairly simple functions. I would like to be able to call one of the JS functions from my program with a simple data type passed with it. e.g. MyFunc(int). Nothing needs to be returned. I would appreciate any guidance on how I go about this, thank...

Generating thumbnails of the webpages visited on a client side

Hi, I developing an extension - firefox so with this extension i keep track of the pages the user visits and now what i want to do is, i want to be able to popup a thumbnail of the webpage when the user hovers the mouse over the link. i have done that using third party websites for generating thumbnials such as http://images.websnapr.co...

How to replace text not within a specific-Tag in JavaScript

I have a string (partly HTML) where I want to replace the string :-) into bbcode :wink:. But this replacement should not happen within <pre>, but in any other tag (or even not within a tag). For example, I want to replace :-)<pre>:-)</pre><blockquote>:-)</blockquote> to: :wink:<pre>:-)</pre><blockquote>:wink:</blockquote> I alrea...

How to include Javascript file in Asp.Net page

I want to do some client side validation using javascript in ASP.NET page. I tried using <script src="../../../JS/Registration.js" language="javascript" type="text/javascript" /> but its not working. Please help. ...

Javascript image handling library

Hello, I need to some extra functionalities to a website regarding image handling. The user must be able to pane, zoom and rotate images on a image gallery. Is there any free javascript library/framework that handles this actions? ...

How do I embedd an audio player in a PHP page?

I am begginer to PHP, MySQL, and JavaScript developement. I have one link by the name 49(doc file),and audio file name 49(mp3file name). I'd like the audio file to play one time when the link to the doc file is clicked. Is this possible? ...

How to use hidden iframe connect to the server in GreaseMonky

First,I created a hidden frame like this: var oHiddenFrame = null; if(oHiddenFrame == null){ oHiddenFrame = document.createElement("iframe"); oHiddenFrame.name = "hiddenFrame"; oHiddenFrame.id = "hiddenFrame"; oHiddenFrame.style.height = "0px"; oHiddenFrame.style.width = "0px"; oHiddenFrame.style.position = "absolute"; oHi...

Validating user authentication for all page

Hi all, I am using the HTML page on front end PHP for server side scripting. now the problem i have configuration page which can be loaded by disabling javascript on Mozilla setting. Since i am using cookie to validate on the javascript For avoiding this i need some thing i can call some php script onload without intimating user and v...

Javascript: setting up a chain of prototypes

In Javascript, every object has a prototype. Any prototype is an object, therefore any prototype has a prototype. This is me: var Person = function (name) { this.name = name; } Person.prototype = { walk: function () { alert(this.name + ' is walking'); } } var walter = new Person('Walter'); I can walk: walter.walk() // => "Wa...

JavaScript: Show / Hide <DIV> based on URL string

Hi, I need to show a DIV on two pages (URL's) but not on the others. (I have jQuery on the pages if that helps.). I'm a complete noob so all help is very much appreciate. Thank's! Case (1) where I want to show the DIV: On the start page, when the web browser address field reads 'www.mydomin.com' The start page is PHP so I guess the f...