External javascript file not loaded

Hi I am beginner with jquery ; I am following through with a tutorial;
I have javascript file called default.aspx.js in the Scripts folder
/// <reference path="jquery-1.4.1-vsdoc.js" />
$(function() {
$("div").click(function() {
alert('');
my webform is:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="javascriptweb.WebForm1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Scripts/jquery-2.0.3.min.js" type="text/javascript"></script>
<script src="Scripts/default.aspx.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
Div #1
</div>
<div>
Div #2
</div>
</form>
</body>
</html>
nothing happens when I click the div;
i also tried to make the javascript file just call alert upon  documnet ready but it did not work either
any help will be most appreciated;
i am using  google chrome 

Hi,
Thank you for posting in the MSDN forum.
I’m afraid that it is not the correct forum for this issue, since this forum is to discuss the VS testing issue.
Happy to see this issue has been resolved. For further research,
I suggest that you can consult your issue on ASP.NET forum: http://forums.asp.net/
 for better solution and support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • External w3d file not loading once in the server

    Hi,
    i have my director file that loads external files in w3d
    format, but they are not loading once i upload them in the server,
    they load on my local computer, but they stop loading once in
    the server,
    I have done some research, and I found out that there have to
    be some 'correct mime types' you can read this thread here:
    http://director-online.com/forums/read.php?3,19629
    my question is: How do I change these mime types in the
    server? or what should i do to make my w3d files load?

    Hi,
    First check your extension names it most be ".w3d" and not
    ".W3D" or ".w3D". Second your shockwave 3d files must to be on a
    folder called "dswMedia" for security reasons on the server. Any
    external file you need for your movie online most to be there.
    At last, before you send any command to your loaded .w3d file
    inside your movie be shure to check it´s member estate, if you
    tray to do something with it and isn´t ready this generate
    problems or simply does nothing halting your movie.
    Have a nice day.

  • How to include external javascript file in an html

    hello
    i've an html file placed in apache/webapps/test folder this html file includes an external javascript file placed at same level
    i'm includind the file as
    <script src="file1.js"></script>but the file does not gets included
    but when the sam folder "test" is paste outside apache the html file including the external file runs properly.
    Thank You

    flounder wrote:
    cotton.m wrote:
    What's really pathetic is that this is your third cross post on this same stupid off topic topic.
    You are really a dumb f&#117;ck you know that?If they knew that they were a dumb f&#117;ck then they wouldn't be a dumb f&#117;ck!That's a logical and reasonable conclusion. Therefore I very much doubt that the OP is capable of it.
    Hmmm this is interesting. It now shows the entity escapes rather than their values when you quote.

  • Jspx and external javascript file (display empty page ?!?!)

    I have created a JSPX file...
    Now I want to add a javascript control to verify that only numbers are pressed from keyboard..
    This is a simple javascript function:
    function isNumberKey(evt)
    var charCode = (evt.which) ? evt.which : event.keyCode
    if (charCode > 31 && (charCode < 48 || charCode > 57))
    return false;
    return true;
    When I add a function directly to jspx I get error in phase of compile of the page...
    So I tryed to write an external javascript file with function above...
    In My jspx page i have put <script src="functions.js"></script> the tag has a reference to external javascript file...
    When I run the page I get "blank" page.. (it's like that all html code is a comment)..
    If I remove the script tag the page will display correctly...
    Is there any example how to include an external javascript file inside jspx?
    this is a piece of jspx:
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>
    <title></title>
    <link href="css/oracle.css" rel="stylesheet" media="screen"/>
    <script src="functions.js" type="text/javascript"></script>
    </head>
    ..

    Hi,
    you should not add
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"/>
    <title></title>
    <link href="css/oracle.css" rel="stylesheet" media="screen"/>
    <script src="functions.js" type="text/javascript"></script>
    </head>
    to f:view. There are JavaScript equivalents to this. Alternatively use
    <f:verbatim>
    <script src="functions.js" type="text/javascript"></script>
    </f:verbatim>
    I assume you use JDeveloper 10.1.3 because in JDeveloper 11 there are other options
    Frank

  • External swf file not using URLRequest

    Good morning guys.
    You can load an external swf file not using URLRequest? Since embed html code is setted as <param value="never" name="allowscriptaccess"/>
    I have this problem and I need to load a swf skin
    thank you

    are you loading a swf (done during runtime) or importing one (done during authortime)?
    in either case, the allowscriptaccess parameter of the external swf (that your loading or importing) is irrelevant.  allowscriptaccess is assigned in the main (loading or importing) swf's embedding html page and is used to control html/js access of the main and loaded swfs.
    if you trust the swf you're loading, you can change allowscriptacess to always.  if you're importing a swf, none of its actionscript will execute anyway so it doesn't matter whether its trusted or not.

  • Dreamweaver widget spry .js files not loading

    Problem with spry .js files not loading on index.html whats wierd is it works on other servers but not on other one, is there any js restrictions on the server, links the same, Is it;
    1. useing site root to lnk .js? buggered if I know! But really need to fix this, and all other widgets I have on the site are fine.
    2. Some one suggested there should also be a SpryWidgetBase ? whats that about?
    3.Is my DOCTYPE  ok?
    As I said here it is fine http://www.tompriceshs.wa.edu.au/Publish/ and its the exact same copy! as http://www.tompriceshs.com.au/ but not working here as you will see.
    Your greatness is required yet again! Please.
    Skip

    These are the first lines of the working SpryWidget.js
    // SpryWidget.js - version 0.16 - Spry Pre-Release 1.7
    // Copyright (c) 2009. Adobe Systems Incorporated.
    // All rights reserved.
    // Redistribution and use in source and binary forms, with or without
    // modification, are permitted provided that the following conditions are met:
    //   * Redistributions of source code must retain the above copyright notice,
    //     this list of conditions and the following disclaimer.
    //   * Redistributions in binary form must reproduce the above copyright notice,
    //     this list of conditions and the following disclaimer in the documentation
    //     and/or other materials provided with the distribution.
    //   * Neither the name of Adobe Systems Incorporated nor the names of its
    //     contributors may be used to endorse or promote products derived from this
    //     software without specific prior written permission.
    // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    // POSSIBILITY OF SUCH DAMAGE.
    (function() { // BeginSpryComponent
    and this is the same for the not working JS
    / SpryWidget.js - version 0.16 - Spry Pre-Release 1.7//// Copyright (c) 2009. Adobe Systems Incorporated.// All rights reserved.//// Redistribution and use in source and binary forms, with or without// modification, are permitted provided that the following conditions are met:////   * Redistributions of source code must retain the above copyright notice,//     this list of conditions and the following disclaimer.//   * Redistributions in binary form must reproduce the above copyright notice,//     this list of conditions and the following disclaimer in the documentation//     and/or other materials provided with the distribution.//   * Neither the name of Adobe Systems Incorporated nor the names of its//     contributors may be used to endorse or promote products derived from this//     software without specific prior written permission.//// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE// POSSIBILITY OF SUCH DAMAGE.(function() { // BeginSpryComponent     if (typeof Spry == "undefined" ||
    My guess is that the latter has been cottupgwd on the way up. Sorry, corrupted.
    To prove the theory, simply link SpryWidget.js from ..wa.edu.au to ..com.au as in
    <script type='text/javascript' src='http://www.tompricehs.wa.edu.au/Publish/Spry-UI-1.7/includes/SpryWidget.js'></script>
    Gramps

  • Presentation_Model javascripts are not loading while customizing OpenUI

    Hi All,
    I would like to know, if any one tried to customize the UI with given examples like adding google map hover, partialrefresh javascripts in Oracle documentation [Configuring Open UI.pdf]
    I tried to follow the steps given for changing "manifest_extensions.map" and "custom_manifest.xml" and added given js files in location "siebel\custom\*.js"
    But presentation_model javascripts are not loading while checking in developer tools in google chrome browser.
    Note: physical_renderer javascript was loaded. and i restarted server after modifications.
    Let me know if i'm missing any steps or settings. Thanks
    Best Regards,
    Venkat

    A same issue I have encount is:
    I write
    <KEY NAME="PartialRefreshPModel"> in Custom_manifest.xml.
    but it should be:
    <KEY Name="PartialRefreshPModel">
    You should check the case sensitive.

  • Changing .css property through external Javascript file?

    Hi,
    I'm trying to create all kinds of functions on an external .js file, so I can just call them in Edge multiple times with less coding. The thing is, after importing jQuery and my external Javascript file, some code works, but I get stuck at this part: changing the .css property of a symbol, more specifically, the "font-size" property. My current function is:
    function setFont(textid,fontsize,originalWinWidth){ //textid: symbol's name; fontsize: current font size of this symbol; originalWinWidth: window size at the start of the animation
    console.log("Set Font:");
    //set the original font size
    var originalFontSize = Math.round(originalWinWidth/fontsize);
    console.log("Original Font Size: " + originalFontSize);
    console.log("Text ID: " + textid);
    //set the font size using jquery
    sym.$(textid).css("font-size", originalFontSize);  }
    I get an error at the last line, all other parts of the code works. Any idea what this could be?
    Thanks,
    Rafael Carignato

    Have you tried sending textid to the console.log to make sure you're sending the actual name of the symbol and not a pointer to the symbol itself?
    -Elaine

  • External Drive Files Not Showing Up on Mac but files do shows Up on PC

    External Drive Files Not Showing Up on Mac but files do shows Up on PC
    i had the Ex HD for about 3 years running smoothly on my mac but recently everything disappeared. plunged it into a pc to see if it read my files and it did. what can i do? to make it work on mac again. i don't want to reformat that drive because i have important applications (DMG) and other zip photo video files in the drive.

    yes. i did.
    ...i have tried "verify" & "repair" but they didn't pass the san test. and when i "unmounted/mount" a error message popped up say that there is a application running off the drive but there nothing (i see) running, to close all activity

  • Xml file not loading from different server

    Hi,
    I have a simple flash banner that is pulling a number from an xml file on a different server. When it gets to the frame where the number should be it just says "transferring data from eckul.com" and will not actually pull in the number. Unfortunately I can't put the files on the same servers. Any help would be much appreciated, below are the links and the xml code I'm using followed by the action script. Cheers
    http://www.sainters.net/newsletters/2010/flash_test_membership2.html
    http://www.eckul.com/number.xml
    <?xml version="1.0"?>
    <inventors>
        <person>
            <name>892</name>
            </inventors>
    function loadXML(loaded) {
    if (loaded) {
    _root.inventor = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
    _root.comments = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
    name_txt.text = _root.inventor;
    comment_txt.text = _root.comments;
    } else {
      trace("file not loaded!");
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("http://www.eckul.com/number.xml");

    so, in frame 1 of your fla before you execute that cross-domain load method, use:
    System.security.loadPolicyFile("http:www.yourcrossdomain.com/subdirectoriesIfNeeded/crossd omain2.xml");
    where the following (crossdomain.xml) is in www.yourcrossdomain.com's root (IF you want to allow allow subdirectory policy files):
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
    <site-control permitted-cross-domain-policies="all"/>
    </cross-domain-policy>
    and in the subdirectory (and its descendents) that you want to allow access put crossdomain2.xml:
    <?xml version="1.0"?>
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="www.thedomainthatstryingtoloadcrossdomaindata.com" />
    </cross-domain-policy>

  • Troubles with xmp files not loading...

    I'm having troubles with xmp files not loading with images but are present in the image folders. does anyone know why this is happening and if there is a way to fix this. Also when trying to load the xmp individually they are grayed out and unable to load. I have tried this on different machines (Macs) and still no luck. Any help would be greatly appreciated in this issue.

    > The information contained in the XMP file is stored in the DNG file so there is no need for a separate file.
    Aww, yuck!! That's a real drag...
    When editing lots of files (yesterday's shoot produced 8GB) I back everything up to off-line storage and then, after doing all my edits and crops in ACR, I only have to copy over the small XMP files which takes no time at all.
    So if I re-edit the DNG with ACR I have to re-copy ALL the files again to the off-line storage.
    I used to sometimes even save 2 versions of the xmp files when I needed 2 different crops of the same images, such as doing a wide screen 'cinema' crop for a corporate client's Intranet presentation of their event, as well as more standard crops to be used for their newsletters.
    Guess I won't be using DNG any more..
    Thanks for the help Kees :-)
    Russell

  • Imported Jar file not loaded at run time ORA-105100

    Oracle 9iDS forms Version 9.0.2.9.0
    Oracle 9iAS Release 2
    I have imported java classes from a jar file into my form. I have it working in client server. Added the entries to the classpath in the default.env and system environment variable for development of the form and for execution.
    Moved the jar file, form and testing html to the application server. Modified the classpath in the default.env file. Tested the form. Got the ORA-105100 error. MetaLink note 261650.1 states that error frm-40735 When-Button-Pressed triger raised exception ORA-105100 if calling a java function from a jar file. Cause: Jar file not loaded at run time. Solution: add in your default.env CLASSPATH parameter your jar file including the whole directory of the jar file location. That has been done and the OC4J has been restarted. Still get error.
    Oracle support has not been able to give me much help as of yet. Does anyone have any further ideas, or documentation that I can read to help get this working?
    Thanks in advance for any assistance that is offered.

    Hey people any clues?

  • Call External Javascript file in Custom Visual WebPart

     Hi..
     How to call external javascript file in Custom Visual WebPart in sharepoint 2010
    Ravindranath

    Hello,
    Download that script and save in layout folder or within a site. Then use below script tag in webpart:
    <SharePoint:ScriptLink ID="ScriptLink2" Name="location/jquery-1.5.min.js" runat="server" OnDemand="false" Localizable="false" />
    http://stackoverflow.com/questions/5068663/how-to-call-an-external-javascript-file-from-a-webpart
    http://stackoverflow.com/questions/5243821/external-javascript-file-in-sharepoint-web-part
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Invoking external javascript file from xdp source

    Is it possible to invoke an external javascript file from within the xdp source? I know it is possible to embed the javascript in the form.
    If this is possible, would I be correct in assuming that this is also possible from pdf source?
    Basically I am looking to show / hide buttons based on the status associated with a form at a given time in the flow. My understanding of PDFs is that the source cannot be edited once it has been created? If this is the case I was hoping that there could be code embedded that would call on the external file which would return the status of the letter. Based on the response buttons / fragments etc could be shown / hidden as required.
    Feedback required asap please!
    Thanks in advance.

    You cannot call outside of the rendered form. So you have a couple of means to get information into the form. Merge dat aonto the form (in your case you can use a field as a flag and key off of that),or use Web Service call to check the status.
    Hope that helps
    Paul

  • Targeting Edge from external javascript file

    Is it possible to target adobe edge build from an external Javascript file? For instance, I click a button outside of the edge animate project and javascript tells Edge animate to "play()". What would that syntax be?

    Yes, it is.  Read this post for some background information and a sample.
    http://forums.adobe.com/message/5289458#5289458
    -Elaine

Maybe you are looking for

  • Human Task: how to get the participant name in the task form?

    HI All, I am using SOA Suite 11.1.1.6 in the current project. For a human task, there are multiple participating groups. For each participant, the payload is different. Currently, we are calling Human Task multiple times to pass the payload. However,

  • Connect cheap tv to imac via time capsule?

    I have an iMac connecting to the internet with an airport express (not an ethernet cable).  I would like to upgrade the airport to a time capsule, and to stream video from the iMac to a cheap TV. I am hoping the TV can function as a second monitor, c

  • Javascript in HTML of Email Being Ignored

    The users of our application access the login page by first visiting a simple HTML page with virtually nothing but a link on the page. The user then clicks the link, and within the HTML of this page is javascript that makes the login page of the appl

  • How to migrate SQL serveer table-valued functions into Oracle 10g

    hi , i'm trying to migrate from SQL server to Oracle. There are some Table_valued functions ( Function that returns table). while migrating using SQL Developer it uses cursor for every table query. is this is the only solution to migrate functions re

  • How to display existing sap form in our menuclick

    Hi All, I have created one addon for MRP in this addon when client click on menu i have to display "Order recomandation" form which will dispaly in existing MRP functions. How to display existing sap form in our menuclick. please help me as soon as p