Re: JS display function

Tuesday, May 21, 2013

0 comments
Use an IFRAME tag. Set the SRC property to the page you need to show.

<select id="report" >
<?php

echo "<option value=\"".data_summary.".php\">--Select--</option>";
echo "<option value=\"".data_summary.".php\">Data Summary</option>";
echo "<option value=\"".outputs_reports.".php\">Outputs reports</option>";
echo "<option value=\"".outcomes_reports.".php\">Outcomes reports</option>";
echo "<option value=\"".sroi_reports.".php\">SROI reports</option>";
?>
        </select><br>
          <iframe id="vtarg"></iframe>

        <button onclick="view()">View</button>
        <hr />
        <div id="pdf">
            <script type="text/javascript">
                function view()  {
                    var e = document.getElementById("report");
                    var str = e.options[e.selectedIndex].value;
                    var f = document.getElementById("vtarg");
                      f.src = str;
                    }

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: JS display function

Monday, May 20, 2013

0 comments
I suggest setting up an IFRAME just after the SELECT tag, then using JavaScript to set the src attribute.
That would then send a GET request to the server, and the HTML will load into the IFRAME, leaving the SELECT tag in place for another selection.


On Friday, May 17, 2013 3:20:59 PM UTC-4, MMZ wrote:
I have some drop down menu options of php files and want to display them on the same page when user selects and click on view button but I don't know how to complete my code :
<select id="report" >
<?php

echo "<option value=\"".data_summary.".php\">--Select--</option>";
echo "<option value=\"".data_summary.".php\">Data Summary</option>";
    echo "<option value=\"".outputs_reports.".php\">Outputs reports</option>";
echo "<option value=\"".outcomes_reports.".php\">Outcomes reports</option>";
echo "<option value=\"".sroi_reports.".php\">SROI reports</option>";
?>
 
        </select>
<IFRAME id="vtarg"></IFRAME>

        <button onclick="view()">View</button>
        <hr />
        <div id="pdf">
            <script type="text/javascript">
                function view()  {
                    var e = document.getElementById("report");
                    var str = e.options[e.selectedIndex].value;
                    var f = document.getElementById("vtarg");
                    f.src = str;
                  }
 
 

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

MASTER PSYCHIC READER~ ACCURATE & AMUSING

Saturday, May 18, 2013

0 comments
Your first 3 minutes are FREE talking live with me.

Please visit my website at: http://www.keen.com/Ask+Fran

Or, call me right now at: 1-800-275-5336 x0160

--
You received this message because you are subscribed to the Google Groups "Website Design Nz" group.
To unsubscribe from this group and stop receiving emails from it, send an email to website-design-nz+unsubscribe@googlegroups.com.
To post to this group, send email to website-design-nz@googlegroups.com.
Visit this group at http://groups.google.com/group/website-design-nz?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

MASTER PSYCHIC READER~ ACCURATE & AMUSING

Friday, May 17, 2013

0 comments
Your first 3 minutes are FREE talking live with me.

Please visit my website at: http://www.keen.com/Ask+Fran

Or, call me right now at: 1-800-275-5336 x0160

--
You received this message because you are subscribed to the Google Groups "Website Design Nz" group.
To unsubscribe from this group and stop receiving emails from it, send an email to website-design-nz+unsubscribe@googlegroups.com.
To post to this group, send email to website-design-nz@googlegroups.com.
Visit this group at http://groups.google.com/group/website-design-nz?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

JS display function

0 comments
I have some drop down menu options of php files and want to display them on the same page when user selects and click on view button but I don't know how to complete my code :
<select id="report" >
<?php

echo "<option value=\"".data_summary.".php\">--Select--</option>";
echo "<option value=\"".data_summary.".php\">Data Summary</option>";
    echo "<option value=\"".outputs_reports.".php\">Outputs reports</option>";
echo "<option value=\"".outcomes_reports.".php\">Outcomes reports</option>";
echo "<option value=\"".sroi_reports.".php\">SROI reports</option>";
?>

        </select>

        <button onclick="view()">View</button>
        <hr />
        <div id="pdf">
            <script type="text/javascript">
                function view()
                {

                    var e = document.getElementById("report");
                    var str = e.options[e.selectedIndex].value;
              

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Logo Design Photoshop Tutorials

0 comments
Hi

Learn how to create your own logo in Photoshop from these easy to
follow tutorials.

http://www.psd-dude.com/tutorials/resources/logo-design-photoshop-tutorials.aspx


kindest regards,
John

--
You received this message because you are subscribed to the Google Groups "Web Design & Programming | Tutorials - Tips - Tricks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web-des-prog+unsubscribe@googlegroups.com.
To post to this group, send email to web-des-prog@googlegroups.com.
Visit this group at http://groups.google.com/group/web-des-prog?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

How can I make this function fetch results from a JSON file and present them properly in the website?

Monday, May 13, 2013

0 comments
How can I make this function fetch results from a JSON file and present them properly in the website? 

Full description: 

https://c9.io/folly/javascript_search_function 

Our Google Group: 

https://groups.google.com/forum/?fromgroups#!forum/javascript-search-function 

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Great jerseys shop : http://www.22jerseysstore.com

Thursday, May 9, 2013

0 comments

Great Jerseys!!!

www.2011jerseystore.com is a online sotre,shows great  quality jerseys, just like nfl football jerseys,nhl hockey jerseys,nba basketball jerseys ,mlb baseball jerseys, and NCAA jerseys, most brand of sunglasses and hats

if you interested in any of them wellcome to view the site to find anything you like, i can sure you will satisified them

Our site: http://www.22jerseysstore.com 

our MSN: jerseysstore2011@hotmail.com 

--
You received this message because you are subscribed to the Google Groups "Website Design Nz" group.
To unsubscribe from this group and stop receiving emails from it, send an email to website-design-nz+unsubscribe@googlegroups.com.
To post to this group, send email to website-design-nz@googlegroups.com.
Visit this group at http://groups.google.com/group/website-design-nz?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Changing image src before it's rendered?

Monday, May 6, 2013

0 comments
Off the top of my head, I'd change the &quot; around the img URL in the call to ShowFullImg() to a single quote and try again.

On Saturday, May 4, 2013 3:04:50 PM UTC-4, Cyberpine wrote:
this jquery simple model add-in code works great to popup a fiXed image http://www.ericmmartin.com/projects/simplemodal-demos/    i'm trying to use inside an asp.net datalist solutoin that grabs images from a directory, but the problem is not ASP.NET or C# related.
 can't seem to make it DYNAMIC CHANGE WHICH IMAGE pops up (see this post for details).. If I use a set img src it works
 
 
 
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
    function ShowFullImg(url) {
        var img = $("#<%=Image1.ClientID %>");
        img.src = url;
        }
</script>
 

<div id='container'>
  
 
<div id="basic-modal-content">
<asp:Image ID="Image1" runat="server" />
</div>
 
 
 <div id='basic-modal'>
<ASP:DataList id="repeater1"  runat="server" repeatdirection="Horizontal" RepeatLayout="Table" Repeatcolumns="5">
<ItemTemplate>

<asp:ImageButton ID="ThumbnailImg" class="basic" ImageUrl='<%# Eval("n1") %>'  Height="100" Width="150" BorderStyle="Ridge"  OnClientClick='<%# Eval("n2","ShowFullImg(\"{0}\");return false;") %>'  runat="server" />                         
   
</ItemTemplate>
</asp:DataList>
    </div>
</div>
 
</asp:Content>
 
 
 
 
I suspect my problem is when I'm calling the javascript that updates the image.src i've likely already bound.
 

Agaom. my issue is NOT ASP.NET or C# related - at it is building the grid of thumbnails. I just want to be able to change the image that pops up  (Image1) with the correctly selected image.
 
 
No image pops up,just an empty popup box  box. My rendered code looks like this:
 
 
<script type="text/javascript">
    function ShowFullImg(url) {
        var img = $("#Maincontent_Image1");
        img.src = url;
        }
</script>
 
 
 
<div id='container'>
   
 
<div id="basic-modal-content">
<img id="Maincontent_Image1" src="" />
</div>
 
 
 <div id='basic-modal'>
 
<table id="Maincontent_repeater1" cellspacing="0" style="border-collapse:collapse;">
        <tr>
                <td>
 
 
<input type="image" name="ctl00$Maincontent$repeater1$ctl00$ThumbnailImg" id="Maincontent_repeater1_ThumbnailImg_0" class="basic" src="products/af/124-2424_IMG.JPG" onclick="ShowFullImg(&quot;products/af/124-2424_IMG.JPG&quot;);return false;" style="border-style:Ridge;height:100px;width:150px;" />
 
 
 
 
 
 
Many Thanks in advance for you help

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Re: Access form input value in JS variable problem

0 comments
Simple -- write your own version of "getElementById"

Check out "GetById()" in the page below.

There are limitations, of course. GetById()  is not case-sensitive, meaning "ixv[list]" will be treated the same as "Ixv[List]", and spaces in the id are significant, meaning that "ixv[list]" is different from "ixv [list]"

This solution works in IE, Firefox, Chrome, Safari, and Opera.

<html>
<head>
<title>Fix for David Alyea</title>
<script>

var Undef;

function Gid(id) {
    document.getElementById(id);
}

function ShowIdByTagName(TagName) {
    var s = "", i, a = document.getElementsByTagName(TagName);
    for (i = 0; i < a.length; i++)
        s += a [i].id + ", ";
    return s;
}

function GetById(TagName, id, num) {
    var i, a = document.getElementsByTagName(TagName);
    if (num == Undef)
        num = 1;
    for (i = 0; i < a.length; i++)
        if (id.toUpperCase() == a [i].id.toUpperCase() && --num <= 0)
            return a [i];
}

function check(num) {
    var x=GetById("INPUT","ixv[list]",num).value;
    alert(x);
}

</script>
</head>
<body>
<form id="f" method="get" action="/code/submit.php">
<input type="text" name="var[list]" id="ixv[list]" value="">
<button type="button" onclick="check(1);">Save</button>
<br>
<input type="text" name="var[list]" id="ixv[list]" value="">
<button type="button" onclick="check(2);">Save</button>
<br>
<button type="button" onclick="alert(ShowIdByTagName('INPUT'));">Show</button>
</form>
</body>
</html>


On Saturday, May 4, 2013 7:48:52 PM UTC-4, David Alyea wrote:
I have a form for which I cannot change the input value field names. One such field is in the HTML as follows:

<body>  <form id="f" method="get" action="/code/submit.php">  <input type="text" name="var[list]" id="ixv[list]" value="">  <button type="button" title="Save" onclick="check();">  </form>  </body>

Now in my javascript, I want to access that input value. I tried this, and of course it doesn't work since [] looks like an array in JS.

function check() {  var x=var[list].value;  alert(x);  }

The problem is that the variable name has [] in it. How can I get that input field value in javascript?

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

iPhone App - 20/20 Vision

Sunday, May 5, 2013

0 comments
iPhone App - 20/20 Vision - http://2020visioniphoneapp4.weebly.com

--
You received this message because you are subscribed to the Google Groups "Website Design Nz" group.
To unsubscribe from this group and stop receiving emails from it, send an email to website-design-nz+unsubscribe@googlegroups.com.
To post to this group, send email to website-design-nz@googlegroups.com.
Visit this group at http://groups.google.com/group/website-design-nz?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Access form input value in JS variable problem

Saturday, May 4, 2013

0 comments
I have a form for which I cannot change the input value field names. One such field is in the HTML as follows:

<body>  <form id="f" method="get" action="/code/submit.php">  <input type="text" name="var[list]" id="ixv[list]" value="">  <button type="button" title="Save" onclick="check();">  </form>  </body>

Now in my javascript, I want to access that input value. I tried this, and of course it doesn't work since [] looks like an array in JS.

function check() {  var x=var[list].value;  alert(x);  }

The problem is that the variable name has [] in it. How can I get that input field value in javascript?

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Changing image src before it's rendered?

0 comments
this jquery simple model add-in code works great to popup a fiXed image http://www.ericmmartin.com/projects/simplemodal-demos/    i'm trying to use inside an asp.net datalist solutoin that grabs images from a directory, but the problem is not ASP.NET or C# related.
 can't seem to make it DYNAMIC CHANGE WHICH IMAGE pops up (see this post for details).. If I use a set img src it works
 
 
 
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
<script type="text/javascript">
    function ShowFullImg(url) {
        var img = $("#<%=Image1.ClientID %>");
        img.src = url;
        }
</script>
 

<div id='container'>
  
 
<div id="basic-modal-content">
<asp:Image ID="Image1" runat="server" />
</div>
 
 
 <div id='basic-modal'>
<ASP:DataList id="repeater1"  runat="server" repeatdirection="Horizontal" RepeatLayout="Table" Repeatcolumns="5">
<ItemTemplate>

<asp:ImageButton ID="ThumbnailImg" class="basic" ImageUrl='<%# Eval("n1") %>'  Height="100" Width="150" BorderStyle="Ridge"  OnClientClick='<%# Eval("n2","ShowFullImg(\"{0}\");return false;") %>'  runat="server" />                         
   
</ItemTemplate>
</asp:DataList>
    </div>
</div>
 
</asp:Content>
 
 
 
 
I suspect my problem is when I'm calling the javascript that updates the image.src i've likely already bound.
 

Agaom. my issue is NOT ASP.NET or C# related - at it is building the grid of thumbnails. I just want to be able to change the image that pops up  (Image1) with the correctly selected image.
 
 
No image pops up,just an empty popup box  box. My rendered code looks like this:
 
 
<script type="text/javascript">
    function ShowFullImg(url) {
        var img = $("#Maincontent_Image1");
        img.src = url;
        }
</script>
 
 
 
<div id='container'>
   
 
<div id="basic-modal-content">
<img id="Maincontent_Image1" src="" />
</div>
 
 
 <div id='basic-modal'>
 
<table id="Maincontent_repeater1" cellspacing="0" style="border-collapse:collapse;">
        <tr>
                <td>
 
 
<input type="image" name="ctl00$Maincontent$repeater1$ctl00$ThumbnailImg" id="Maincontent_repeater1_ThumbnailImg_0" class="basic" src="products/af/124-2424_IMG.JPG" onclick="ShowFullImg(&quot;products/af/124-2424_IMG.JPG&quot;);return false;" style="border-style:Ridge;height:100px;width:150px;" />
 
 
 
 
 
 
Many Thanks in advance for you help

--
You received this message because you are subscribed to the Google Groups "JavaScript Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javascript-information+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Copyright © 2010 Web Design | Free Blogger Templates by Splashy Templates | Layout by Atomic Website Templates

Vida de bombeiro Recipes Informatica Humor Jokes Mensagens Curiosity Saude Video Games Animals Diario das Mensagens Eletronica Rei Jesus News Noticias da TV Artesanato Esportes Noticias Atuais Games Pets Career Religion Recreation Business Education Autos Academics Style Television Programming Motosport Humor News The Games Home Downs World News Internet Design Entertaimment Celebrities 1001 Games Doctor Pets Net Downs World Enter Jesus Mensagensr Android Rub Letras Dialogue cosmetics Genexus lasofia thebushrajr wingshock tripedes gorduravegetal dainfamia dejavu-transpersonal jsbenfica republicadasbadanas ruiherbon iranianforaryans eaystcheyl fotosdanadir Só Humor Curiosity Gifs Medical Female American Health Madeira Designer PPS Divertidas Estate Travel Estate Writing Computer Matilde Ocultos Matilde futebolcomnoticias girassol lettheworldturn topdigitalnet Bem amado enjohnny produceideas foodasticos cronicasdoimaginario downloadsdegraca compactandoletras newcuriosidades blogdoarmario arrozinhoii