Click here to Skip to main content
15,895,462 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: JavaScript Native or .NET Compiler Pin
Keith.Badeau20-Sep-11 19:43
Keith.Badeau20-Sep-11 19:43 
QuestionHow to restrict user not to enter <> characters in text box. Pin
InderK15-Sep-11 0:04
InderK15-Sep-11 0:04 
AnswerRe: How to restrict user not to enter characters in text box. Pin
twseitex17-Sep-11 9:01
twseitex17-Sep-11 9:01 
AnswerRe: How to restrict user not to enter characters in text box. Pin
berba19-Sep-11 21:05
berba19-Sep-11 21:05 
AnswerRe: How to restrict user not to enter characters in text box. Pin
John Y.29-Sep-11 9:56
John Y.29-Sep-11 9:56 
QuestionUsing Java Script: Pin
amolraj1114-Sep-11 23:57
amolraj1114-Sep-11 23:57 
AnswerRe: Using Java Script: Pin
twseitex16-Sep-11 9:13
twseitex16-Sep-11 9:13 
QuestionI Frame code to replace "name" attribute Pin
PDTUM14-Sep-11 6:29
PDTUM14-Sep-11 6:29 
Good Morning...I have been using the name attribute (for years) to call an aspx page to load in an iFrame, and it's works perfectly. Unfortunately, it throws a warning that this is an outdated code method and should be replaced. I am sure this is an old story to most Java developers (I am not one), but old habits (especially one's that work perfectly) die hard. So, I decided to move forward and use a newer code call so my code would compile perfectly clean (error and message wise). The catch is that nothing that I have tried works. They all load the page, but none load the page in the frame. Obviously, there is a syntax issue that I am missing. Here is my latest attempt:


XML
<%--Change Page Content in iFrame--%>
    <script type="text/javascript">
        var newPage = document.getElementById('iFrame');
        function ChangePage(newPage) { iFrame.src = 'iHome.aspx' };
    </script>

        //Contents for menu 1 (Home)
        var menu1 = new Array()
        menu1[0] = '<a href="iHome.aspx" target="javascript:ChangePage(newPage)" onclick="javascript:ChangeLabel(home)">Home</a>'


So....all this to basically replace (target="f1"), where f1 was the name attribute of the frame (now deleted)...Go Figure. A slice of code here would be much appreciated. Thanks for your help...Pat



AnswerRe: I Frame code to replace "name" attribute Pin
twseitex16-Sep-11 9:40
twseitex16-Sep-11 9:40 
QuestionReading a file in local drive using Java script Pin
shir_k13-Sep-11 19:49
shir_k13-Sep-11 19:49 
AnswerRe: Reading a file in local drive using Java script Pin
Graham Breach13-Sep-11 20:26
Graham Breach13-Sep-11 20:26 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k13-Sep-11 22:11
shir_k13-Sep-11 22:11 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 0:06
Graham Breach14-Sep-11 0:06 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Sep-11 0:51
shir_k14-Sep-11 0:51 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 1:12
Graham Breach14-Sep-11 1:12 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Sep-11 1:56
shir_k14-Sep-11 1:56 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Sep-11 2:05
shir_k14-Sep-11 2:05 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 2:44
Graham Breach14-Sep-11 2:44 
GeneralRe: Reading a file in local drive using Java script Pin
shir_k14-Dec-11 18:09
shir_k14-Dec-11 18:09 
AnswerRe: Reading a file in local drive using Java script Pin
Matt Meyer14-Sep-11 3:22
Matt Meyer14-Sep-11 3:22 
GeneralRe: Reading a file in local drive using Java script Pin
Graham Breach14-Sep-11 4:09
Graham Breach14-Sep-11 4:09 
GeneralRe: Reading a file in local drive using Java script Pin
Matt Meyer14-Sep-11 4:22
Matt Meyer14-Sep-11 4:22 
QuestionDynamic Iframe Resizing on Multiple Layers Pin
Phatinox13-Sep-11 12:24
Phatinox13-Sep-11 12:24 
AnswerRe: Dynamic Iframe Resizing on Multiple Layers Pin
twseitex16-Sep-11 9:51
twseitex16-Sep-11 9:51 
AnswerRe: Dynamic Iframe Resizing on Multiple Layers Pin
greatghoul28-Sep-11 0:23
greatghoul28-Sep-11 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.