Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inputmask for mmTextbox
Message
De
28/07/2010 18:23:19
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
28/07/2010 17:48:16
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 3.0
Divers
Thread ID:
01473906
Message ID:
01474367
Vues:
30
Frank, if you just remove the reference to the script and then drag it from the solution explorer back onto the page it should be added correctly. If you don't have the script showing in your project then I would add it maybe under a folder called Scripts or something. My guess is you need the path to be a tilde and then a forward slash before the file name plus any folder names.
"~/Scripts/jquery.maskediput.js"
the tilde references the root of your application for you.
Tim

>Yes, that's what I meant when I said:
>
>>If I put the "." in front of "/" then VS can't find the files.
>
>I get warnings in VS when I do that:
>
>
Warning	1	Error updating JScript IntelliSense: C:\Development\Mere Mortals .NET Framework 2008\SamaanSystems\IAS.Web\jquery.js: Object doesn't support this property or method @ 33:0	C:\Development\Mere Mortals .NET Framework 2008\SamaanSystems\IAS.Web\IASOuter.Master	1	1	IAS.Web
>Warning	2	File './jquery.js' was not found.	C:\Development\Mere Mortals .NET Framework 2008\SamaanSystems\IAS.Web\IASOuter.Master	13	41	IAS.Web
>Warning	3	File './jquery.maskedinput.js' was not found.	C:\Development\Mere Mortals .NET Framework 2008\SamaanSystems\IAS.Web\IASOuter.Master	14	41	IAS.Web
>
>and running the code doesn't make a difference.
>
>
>>You tried putting the ./ in your code, like this?
>>
>>
>><script type="text/javascript" src="./jquery.js"></script>
>><script type="text/javascript" src="./jquery.maskedinput.js"></script>
>>
>>
>>Eric
>>
>>>My folder setup is like this:
>>>
>>>
SamaanSystems (Which has my .sln file)
>>>|- IAS.Business
>>>|- IAS.Web (here is where my aspx pages are and where I put the jquery.js)
>>>
>>>I do not know which folder is the root of my application here.
>>>
>>>My actual script code is this:
>>>
>>>
    <script type="text/javascript" src="/jquery.js"></script>
>>>    <script type="text/javascript" src="/jquery.maskedinput.js"></script>
>>>    <script type="text/javascript">
>>>    $("document").ready()
>>>    {
>>>        $(".number").mask("999,999,999.99");  // Masks all element with the class='number'
>>>    }
>>>     </script>
>>>
>>>
>>>If I put the "." in front of "/" then VS can't find the files.
>>>
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform