It is a common design in data handling applications to move from form to form to show the user different information. I have seen any number of different attempts at this on the boards so i thought I'd throw together a short snippet to show a cleaner OO way to do this. This example is designed to hide the parent form whilst a child form is displayed then to redisplay the parent when the child is closed. In this instance, no data is passed between the parent and the child. To see how to do this check [URL="http://www.daniweb.com/code/snippet298708.html"]my tutorial[/URL] for …

Member Avatar
Member Avatar
+1 forum 22

hey guys. im trying to show a dropdown list and hide input text when an option in another drop down list is selected. dropdown <select name="table-type" id="select-t"> <option value="" disabled selected>Types of Tables</option> <option value="Round Table" id="rt">Round Table</option> <option value="Banquet Table" id="bt">Banquet Table</option> <option value="Square Table" id="st">Square Table</option> </select><br> No. of seats : <br> <input type="text" readonly placeholder="Select Table" size="8" id="inform" /> <select name="seatno" class="seat-r" id="seat-r"> <option value="" selected disabled>No. of seats</option> <option value="6">6</option> <option value="8">8</option> <option value="10">10</option> <option value="12">12</option> </select> <select name="seatno" class="seat-b" id="seat-b"> <option value="" disabled selected>No. of seats</option> <option value="6">6</option> <option value="8"></option> <option value="10"></option> </select> <select name="seatno" …

Member Avatar
Member Avatar
+0 forum 2

hello i have create some webpages they work and are nice but when i click in contat form which contain php code inside it display all code which are inside.

Member Avatar
Member Avatar
+0 forum 13

Suppose I had 3 divs, each div has at least one hide/show button. The problem is when I click a show button, both 3 divs will show ups. Example: <div id="container"> <div class="course"> <a href="#" class="clickshow"> Click me to Show</a> <div class="hidden"> Hello </div> </div> <div class="course"> <a href="#" class="clickshow"> Click me to Show</a> <div class="hidden"> Hello </div> </div> <div class="course"> <a href="#" class="clickshow"> Click me to Show</a> <div class="hidden"> Hello </div> </div> </div> <script> $(document).ready(function(){ $(".course a.clickshow").click(function(){ $(".course div.hidden").show(); }) }); </script> When I click show button, it shows up all. Then, I tried to change every div into …

Member Avatar
Member Avatar
+0 forum 3

I’m trying to create a textbox, where the user enters a number, and the output shows a word representing each digit, each word is in an individual label created by the code, regardless of how many digits are entered. So if the user enters 153, the output will be: one five three I’m not sure how to break the input apart to separate each digit and create a label accordingly to the number of digits entered (e.g. if 3 digit number, create 3 labels). I know that after breaking the input apart, run those separated digits through case select, and …

Member Avatar
Member Avatar
+0 forum 14

how to show data on different sections on click a link without anchor tag in html without using js,css or php

Member Avatar
Member Avatar
-1 forum 2

#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int menu,i; char ulang; FILE *pf; char karakter; int data[5]; char nama[30],alamat[40]; char buffer[1024]; do { printf("Menu Utama Data Kendaraan\n"); printf("--------------------------\n"); printf("1. Show Data \n"); printf("2. Add Data \n"); printf("3. Edit Data \n"); printf("4. Remove Data \n"); printf("3. Search Data \n"); printf("--------------------------\n"); printf("Insert your selection : "); scanf("%d",&menu); printf("\n----------------------------\n"); switch(menu) { case 1: { pf = fopen("D:/tugas/file/tugas/data.txt","r"); if (pf != NULL) { while ((karakter = getc(pf)) != EOF) { printf("%c",karakter); } } else { printf("Fatal erorr : File coba.txt cannot be opened"); exit(EXIT_FAILURE); } break; } case 2: { pf …

Member Avatar
Member Avatar
+0 forum 3

Just a simple image file slide show using PySide (PyQT).

Member Avatar
Member Avatar
+2 forum 1

Please could someone help me with this one? I have developed a small application to call several powerpoint presentations. The user will enter the powerpoint number and the powerpoint will be shown in Viewshow form. However this is not the case. The powerpoints are showing in the normal powerpoint form where the users can edit the texts in the presentation even though the powerpoint presentation are saved as viewshow. Please help with the code to display powerpoint in VIEWSHOW form:(;(If this is displayed in a form is fine, part my working code is as shown below; [CODE]Imports PowerPoint = Microsoft.Office.Interop.PowerPoint …

Member Avatar
Member Avatar
+0 forum 5

My friends I was working on the concept like a user can upload his image as a user avatar, and that should be shown in all his pages. I have two pages namely get.aspx and show.aspx get.aspx contains image file uploading and saving the records in database. show.aspx is to show the image file of the user. I got the image in the form of byte[]. But I need to display it as a image. Here is the code for show.aspx.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data; using System.IO; using …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I'm currently looking at this [JSFIDDLE](http://jsfiddle.net/MH8e4/6/) and it's 50% of what I need. I have a series of Accordions on my page (a list of courses). What I would like to do is assign these accordians to categories so that when a checkbox is pressed with the id of `security` any accordians with the security tag will show. If someone checks security and cisco all accordions with cisco AND security will show and so forth. If you don't wan to open the JS Fiddle... the HMTL: <input type="checkbox" id="set_1" checked> click to show text1 <p class = "wpbook_hidden …

Member Avatar
Member Avatar
+0 forum 1

[Click Here](http://www.jrjinc.com/project-portfolio-retail.php) I've added 8 pictures to the existing image gallery, using the same format as the existing images. When an image is clicked the originals show but the new ones don't even though they are counted in the image totals. Is there another file I need to edit to get the pics added to the slide show? Thanks in advance.

Member Avatar
Member Avatar
+0 forum 2

I have this code in PHP: $sql = mysql_query("select * from peoplebase where FName like '%$fname%' AND MName like '%$mname%' AND LName like '%$lname%' AND street like '%$street%' AND city like '%$city%' AND state like '%$state%' and zip like '%$zip%' and ssn like '%$ssn%'"); while ($row = mysql_fetch_array($sql)){ echo "<div style='text-align:center'><h3>Results:</h3></div>"; echo "<div style='text-align:center'><p>First Name: ".$row['FName']."</p></div>"; echo "<div style='text-align:center'><p>Middle Name: ".$row['MName']."</p></div>"; echo "<div style='text-align:center'><p>Last Name: ".$row['LName']."</p></div>"; echo "<div style='text-align:center'><p>Street: ".$row['Street']."</p></div>"; echo "<div style='text-align:center'><p>City: ".$row['City']."</p></div>"; echo "<div style='text-align:center'><p>State: ".$row['State']."</p></div>"; echo "<div style='text-align:center'><p>Zip: ".$row['Zip']."</p></div>"; echo "<div style='text-align:center'><p>SSN: ".$row['SSN']."</p></div>"; } and I want to show these all echos in HTML in a table, …

Member Avatar
Member Avatar
+0 forum 4

Hello guys, I really need your help on this one, Please help me out with it I'm using a webBrowser in my application "Visual Basic 2010", And what basically it will do, Once you open up the application, It will show you a URL, let's say for example Google.com by default | What i wanted to do is, To kind of show a specific part of the website only and hide the rest of it, Like for example like result or on google.com, Show the search bar and the search button, But not the I'm feeling lucky Button Can't i …

Member Avatar
Member Avatar
+0 forum 7

loop through javascript show and hide div

Member Avatar
Member Avatar
+0 forum 2

I made three image hotspots on an image called Tab1. I want to click on each of them so it shows an UI next to Tab1. I used the jQuery example off their website since it's close to what I want, but what do I do when I want another button to show it's directed UI? Only #button and #effect are working. <script> $(function() { // run the currently selected effect function runEffect() { // run the effect (selectedEffect $( "#effect" ).show( "explode", options, 500); }; function runEffect2() { $("#effect2").show ("explode", options, 500); }; function runEffect3() { $("#effect3").show ("explode", options, …

Member Avatar
Member Avatar
+0 forum 1

Hello! I need help about how can i do my content show just first time, when i click secocond time in that page have a blank page ,and latter appeard that after 1 hour, how can i do whith php code ?Can somebody help me please about it? Thank you in advance.

Member Avatar
Member Avatar
+0 forum 4

<?php session_start(); include("connection.php"); $id=$_SESSION['id']; ?> <!DOCTYPE html> <html class="beautiful js " xml:lang="en" lang="en"> <head> <link href="120gb_files/index_packaged.css" media="screen" rel="stylesheet" type="text/css"> <title>mackbook_how to find</title> </head> <body> <form method="post"> <div class="box"> <div class="button"> <select id="screen_size" class="fancy" style="border:1px solid #ccc;" > <option selected="selected" value="">Screen Size</option> <?php $sql="select * from `mackbook`"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> <option data-id="965" value="<?php echo $row['screen_size'];?>"><?php echo $row['screen_size']; $_SESSION['size']=$row['screen_size']; ?></option> <?php }?> </select> </div> <div class="button" style="margin-top:50px;"> <select id="processor" class="fancy" style="border:1px solid #ccc;display:none"> <option selected="selected" value="">Processor</option> <?php $sql="select * from `mackbook`"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> <option data-id="970" value="<?php echo $row['processor']?>"><?php echo $row['processor']; $_SESSION['processor']=$row['processor']; ?></option> <?php }?> </select> </div> <div class="button" style="margin-top:50px;" …

Member Avatar
Member Avatar
+0 forum 3

HI! everyone ,Please tell me how to make slide show of http://www.harobikes.com/bmx/

Member Avatar
Member Avatar
+0 forum 6

1.Category 2.Category_sub note: category_name field in Category_sub table is im using as category_id hope u get after see d snap shot i want to do in my category_sub table i am storing category_id frm category table i am attacting the screen shot of table.. i want when i click on Business ..the page ll open which contain the subcategory of bussiness only(im calling that page in iframe by giving target of that page in link)..this also im able to do but the way im doing is very lengthy and i feel there is a better way because i need to …

Member Avatar
Member Avatar
+0 forum 1

How to select data from different tables in a single database and show in a single jtable.. Pls I need help

Member Avatar
Member Avatar
+0 forum 1

Is there any way to get this to work in Internet Explorer? It shows/hides multiple rows in every other browser, but will only show one class's row in IE. Any help would be great. Here's the code. Thanks! <style type="text/css"> li.merk { list-style:none; display: block; width: 925px; padding:8px; margin-top:-20px; } .jamactive { width: auto; padding: 6px 11px; background: #0066CC; border: solid 1px #000099; font: 12px/100% Tahoma; font-weight: 500; letter-spacing:2px; color: #ffffff; -moz-border-radius: 5px; -webkit-border-radius: 5px; -webkit-appearance: none; cursor: pointer;} .jamactive:hover { background-color: #000099; border: solid 1px #000066;} .jaminactive { width: auto; padding: 6px 10px; background: #666666; border: solid 1px #000000; …

Member Avatar
Member Avatar
+0 forum 9

Trying to display events on my website based on what my clients want to view. I have 3 checkboxes setup to toggle the connected events, but I can't seem to make the onclick handle more than 1 event at a time. Basically, I want to know 1) how to display more than one tr row'd event with the selection of any given checkbox. 2) how to have all boxes checked on the page load (checked=true only checks the box with no info showing) 3) AND/OR how to create a CHECK ALL option 4) and, lastly, how to give it a …

Member Avatar
Member Avatar
+0 forum 3

I want to show google map of selected theatre. first user have to select city then they have to choose theatre as per selected city. i have used drop down box for both. then, after selecting theatre, when he clicks on show button i want to show google map of that theatre. plz help me i have tried my best but i cant be able to do this. so plz help me

Member Avatar
Member Avatar
+0 forum 6

i want to click on a row in grid view and the details of each attribute can show separately in textbox field. i had type this in my coding part, but it doesnt work. may i know how to do it? thanks you. Dim text As New TextBox Dim sql_productname As String = " select Product_name from Product_detail where Product_name = """ & grid_bed(nowrow, 0).Value & """" txt_name.Text = sql_productname

Member Avatar
Member Avatar
+0 forum 2

hello i have some problem in showing button, when data exist and data not exist. i want the button show if data exist also data not exist. my current problem right now the button only show when data exist but the button automatically hide when data not exist. here what i got so far..TQ <tbody> <jsp:useBean id="reportList" scope="request" type="List" /> <% Iterator staList = reportList.iterator(); result out = (result) staList.next(); %> <% if (i!=0){%> <input name="search" type="button" id="search" value="Search" onClick="return onSubmit_Click(document.form,'mfa.action?action=Sta_Report&status=<%=out.getStatusExam()%>');"/> <%} else {%> <tr> <td colspan="3">data not exist</td> </tr> <%}%> </tbody>

Member Avatar
Member Avatar
+0 forum 1

Hello Community, I was wondering if there is a way to programmatically import a dll containing a form. Example: When i press a button it will open the form from the dll. NOTE: I need to programmatically import the dll. Please help

Member Avatar
Member Avatar
+0 forum 3

I have the show/hide table rows function working great now (thank you), but I am having a problem with using the back button. If someone has yes to one of the items (yes/no radio buttons) the onClick event in the input tag causes the appropriate info to display. BUT when I submit the form and then hit the back button (to make corrections) then the fields are hidden even though the yes button is clicked. I tried adding the following at the top of my code to initialize them based on the value of the radio button: function initShowHideRows(idName, clsName) …

Member Avatar
Member Avatar
+0 forum 6

I am practicing my C++ programming just making an Health Care related program, I cant seem to access my data that is stored on a .txt file, All I get is that f is not declared in this scope Heres the code: [CODE] #include <iostream> #include <stdlib.h> #include "structr.h" using namespace std; void regsPat(); void database(FILE * f); void saved(patient ab); void menu(){ int opc; system("cls"); cout<<" ----<-<-<>--<-INOMO MEDICARE->--<>-->->----"<<endl; cout<<" 1. Register new Patient "<<endl; cout<<" 2. Database "<<endl; cout<<" 3. Statistics "<<endl; cout<<" 4. Corporate "<<endl; cout<<" 5. Help \n\n\n "<<endl; cin>>opc; switch (opc){ case 1: regsPat(); break; case …

Member Avatar
Member Avatar
+0 forum 2

hi every body i want to show in each row 4 items from my db and go to another row (++row) in each row 4 items until end of items of db instead of in each row 1 item please help me here is the code <?php $sql=mysql_query("SELECT * FROM `products` where tf=1 and star='7' ORDER BY `id` DESC"); $inc = 0; while($r=mysql_fetch_array($sql)){ $id=$r['id']; ?> <div style="width:152px; height:205px;"> <?php echo $id; ?> </div> <?php } ?>

Member Avatar
Member Avatar
+0 forum 5

The End.