Help with asp code
Helleo Everyone
I have been given a website to ammend and although i am not new to dreamweaver and using asp within dremweaver i sometimes struggle dealing with stuff that may have not been created with the tools i am used to.
I have a page that displays information relating to different clocks the page gets its info ftom an access table called tblmovements, in that table is column Called KitID and another column called details that has link information that would go to another page.
Back to the main page all that i need to happen is when the user scrolls down to find the clock that they want i need them to be able to click on more details and for that to link to the page that is referenced in the details column in the table.
But i am not sure on how to do this.
The column kitID is a unique column.
Can anyone assist
Thanks
John
Hi Thanks for the response
Below is the page that shows the information, then where it says details that would then link to the appropriate page.
I did do a link using dreamweaver recordset to the column that has the link in it but every details bit went to the same page, so i understand what you are saying about identifying via the ID but thats the bit i am unsure of.
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="Connections/dbConn.asp" --> <% Dim Recordset1 Dim Recordset1_cmd Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command") Recordset1_cmd.ActiveConnection = MM_dbConn_STRING Recordset1_cmd.CommandText = "SELECT * FROM tblMovements"
Recordset1_cmd.Prepared = true
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%><!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>
<%
Dim objRS
Set objRS = Server.CreateObject ("ADODB.Recordset") strSQL = "SELECT * FROM tblMovements ORDER BY KitID ASC"
objRS.Open strSQL, MM_dbConn_STRING%>
<title>Oakside Classic Clocks | Clock Makers - Kit Gallery</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta name="description" content="Oakside Classic Clocks' Gallery of clock makers Kieninger 'movement, dial, pendulum and accessories' kits." /> <style type="text/css">
<!--
@import url(css/global.css);
.style3 {
color: #990000;
font-style: italic;
.style6 {
font-family: Georgia, "Times New Roman", Times, serif;
color: #000066;
font-style: italic;
.style9 {color: #990000; font-style: italic; font-weight: bold; }
.style14 {color: #990000; font-style: italic; font-weight: bold; font-size: small; }
.style15 {color: #000000}
-->
</style>
</head>
<body id="gallery">
<table width="100%" height="56" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="imgs/banner.gif"><img src="imgs/banner_l.gif" width="236" height="56" /></td>
<td width="12"><img src="imgs/banner_r.gif" width="12" height="56" /></td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#000066"><img src="imgs/slogan.gif" width="485" height="24" /></td>
</tr>
</table>
<!--#include file="incl/mainnav.asp" -->
<div id="content">
<h1 class="strapline">Kieninger Clock 'Movement, Dial & Pendulum' Sets - For those who insist on the Best! </h1>
<h2 align="left" class="strapline">Welcome to Oakside's 'Clock Makers' Gallery - On this page Frank has assembled a large selection of comprehensive clock makers sets to suit all styles of clock cabinets - each Set contains a Kieninger mechanical Clock Movement and a Dial and where appropriate, a Pendulum, the Weight Shells & Fillings, plus all of the Accessories required to get your clock running. We believe that Oakside now stock the largest range of Kieninger Movements and Accessories in Europe! </h2>
<h2 align="left" class="style14"> </h2>
<h2 align="left" class="strapline">Each of Oakside's Clock Makers Sets include every thing you will need to get your clock running, including a Kieninger Mechanical Clock Movement, a Dial, a Pendulum, polished brass weight shells & fillings, the cable pulleys, the gongs, winding key and the fixings. We also include a drawing showing the primary 'movement, dial and pendulum' accommodation dimensions and a template for positioning the mounting holes required to fit these items into your clock. On the 'Spares & Accessories' page you will find special brass rebate hinges, mortise locks, escutcheons, keys and brass screws and adjustable cabinet feet for leveling your clock. You may collect your pre-ordered/pre-paid kit and save the postage.</h2>
<h2 class="style9"> </h2>
<h2 align="justify" class="strapline">We also stock a huge range of <a href="kit_spares_accessories.asp">replacement parts</a> for Kieninger movements. </h2><h2 align="left" class="strapline">If you require a replacement Kieninger movement without accessories please <a href="movement_gallery.asp">click here</a>. </h2>
<h2 class="style9"> </h2>
<h3 class="style6"> You are invited to phone Frank to discuss your project prior to ordering a kit. If you are designing your own clock or are intending to modify an existing design, we suggest that you pre-order your Movement set with a deposit of £25. We will then send you the Kieninger installation drawing so that you can ensure that all parts will fit and operate without later cabinet alterations.</h3>
<h3 align="justify" class="style6">Please note, when you purchase your mechanical clock parts from Oakside, you are dealing with a dedicated Longcase Clock Designer & Maker, not just a shop! We would happily examine you clock drawings to ensure that your design will be able to accommodate the Kieninger movement of your choice; we will also provide telephone assistance when you are installing the mechanicals and commissioning your clock - our expertise will ensure that your new clock performs perfectly!</h3>
<h3 class="style6">Thinking about building you first Grandfather Clock - We suggest that you visit the web site of <a href="http://www.van-vliet.org/dempseywoodworking/grandfatherclock.shtml">Dempsey Woodworking</a> in Canada. Frank has coordinated with the sites owner who has prepared detailed construction plans for a longcase clock, in the style of our Winchester Grandfather clock. Please note that by modifying the depth dimensions on the plan, you can build this clock to accept any of our Kieninger 116cm movements. The web site provides an illustrated 'Step by Step' guide showing each of the constructional stages and you can down-load a free copy of the plans.</h3>
<h5> For Grandfather Clocks around 80 inches high and taller we suggest a 116cm movement with a 280mm width dial.</h5>
<h5> For Grandmother Clocks between 60 & 70 inches tall consider a 100 or 93cm pendulum Movement with a 250mm width dial. </h5>
<h5>For Granddaughter clocks we suggest a 93 or 80CM pendulum Movement and a 200mm width dial. </h5>
<h5>For Laterndluhr Style, Large Wall Regulators with 116cm 'Seconds pendulums, consider Kits 24, 25, 26, 27 28 and 29. </h5>
<h5>For Medium Height Longcase Wall clocks consider the 65, 80 and 93cm Pendulum Movements.</h5>
<h5>For Smaller longcase Wall Clocks consider Kits 08, 09 and 09A. </h5>
<h5>Shaker Wall clocks require a movement of shallow depth and are usually without chimes - Frank suggests Kit 09 .</h5>
<h5>For Small Mantle Clocks consider Kits 01 and 02. </h5>
<h5>For Large Mantle or Bracket Clocks, consider Kits 04, 05, 06 and 07.. </h5>
<hr /><hr />
<div class="clock">
<p>
<%
Do While Not objRS.EOF
' Replace character retuns, ' and " characters
strKitDescriptionShort = objRS("KitDescriptionShort")
strKitDescriptionShort = Replace(strKitDescriptionShort, vbCRLF & vbCRLF, "</dd><dd>")
strKitDescriptionShort = Replace(strKitDescriptionShort, chr(34), """)
strKitDescriptionShort = Replace(strKitDescriptionShort, chr(39), "'")
strImgSrc = "imgs/clocks" & objRS("imgKitCatalogue") %>
<dl>
<img src="<%="imgs/clocks/movement_images/" & objRS("imgKitCatalogue")%>" alt="<%=objRS("imgKitCatalogueAltText")%>" hspace="10" vspace="10" class="img-gallery" />
<dt><%=objRS("KitID")%> featuring the Kieninger
<%=objRS("MovementName")%> </dt>
<dd class="strapline"><%=objRS("Strapline")%></dd>
<dd><%=strKitDescriptionShort%></dd>
<h6 align="center" class="strapline">Price including UK & Ireland delivery £<%=objRS("KitCostStandard")%></h6>
<h6 align="center" class="style3"> Please note that we ship to Canada, the USA, Australia & New Zealand and you get UK Tax Free Prices. </h6>
<dd>
<h3 class="strapline"> You can view the dials etc available for this kit by <a>clicking here.</a>Details</h3>
</dd>
<dt class="strapline">Click to view the </span><%=objRS("KitID")%> <a href="kit_options.asp?KitID=<%=objRS("KitID")%>"> Options & Prices</a> page. </dt>
</dl>
<%
objRS.MoveNext
Loop
%>
</div><!-- clock End -->
<!--#include file="incl/footer.asp" --> </div>
<!-- content End -->
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
Similar Messages
-
Can you help with the code to publish Flash to my own domain.
Thank you for your help, I publish the my site to my own domain, I do not use .Mac, I tested your code and ity works well on .Mac, can you help with the code to publish to my own domain.
Thank you againYou appear to have just collected a variety of code snippets and thrown them together, including a section of AS2 code ( gage.onRelease = function() {... )
The suggestion I offered yesterday still stands. You should find a tutorial regarding AS3 and the atan2 function. Beyond that, what you show suggests this is a school assignment. You should seek help from your fellow students and instructor if that is the case. -
I need help with this code error "unreachable statement"
the error_
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errors
import java.util.*;
import javax.swing.*;
import java.awt.*;
public class Tools//tool class
private int numberOfToolItems;
private ToolItems[] toolArray = new ToolItems[10];
public Tools()//array of tool
numberOfToolItems = 0;
for(int i = 0; i < toolArray.length; i++)//for loop to create the array tools
toolArray[i] = new ToolItems();
}//end for loop
}//end of array of tools
public int search(int id)//search mehtod
int index = 0;
while (index < numberOfToolItems)//while and if loop search
if(toolArray[index].getID() == id)
return index;
else
index ++;
}//en while and if loop
return -1;
}//end search method
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0;
int index;
index = search(id); <-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
}//end delete method
public void display()//display method
for(int i = 0; i < numberOfToolItems; i++)
//toolArray.display(g,y,x);
}//end display method
public String getRecord(int i)//get record method
// return toolArray[i].getName()+ "ID: "+toolArray[i].getID()
}//end getrecod
}//end class
Edited by: ladsoftware on Oct 9, 2009 6:08 AM
Edited by: ladsoftware on Oct 9, 2009 6:09 AM
Edited by: ladsoftware on Oct 9, 2009 6:10 AM
Edited by: ladsoftware on Oct 9, 2009 6:11 AMladsoftware wrote:
Subject: Re: I need help with this code error "unreachable statement"
F:\Java\Projects\Tools.java:51: unreachable statement <-----------------------------------------------------------------------------------------------------------------THIS
int index;
^
F:\Java\Projects\Tools.java:71: missing return statement
}//end delete method
^
F:\Java\Projects\Tools.java:86: missing return statement
}//end getrecod
^
3 errorsThe compiler is telling you exactly what the problems are:
public int insert(int id, int numberInStock, int quality, double basePrice, String nm)//insert method
if(numberOfToolItems >= toolArray.length)
return 0; // <<== HERE you return, so everyting in the if block after this is unreachable
int index;
index = search(id); //< -----------------------------------------------------------------------------------------------------------------HERE
if (index == -1)
toolArray[index].assign(id,numberInStock, quality, basePrice,nm);
numberInStock ++;
return 1;
}//end if index
}//end if toolitem array
return -1;
}//end insert method
public int delete(/*int id*/)//delete method
// <<== HERE where is the return statement?
}//end delete method
public String getRecord(int i)//get record method
// return toolArray.getName()+ "ID: "+toolArray[i].getID() <<== HERE you commented out the return statement
}//end getrecod
}//end class -
Need help with WMI code that will send output to db
'm new to WMI code writing, so I need some help with writing code that we can store on our server. I want this code to run when a user logs into their computer
and talks to our server. I also want the code to:
* check the users computer and find all installed patches
* the date the patches were installed
* the serial number of the users computer
* the computer name, os version, last boot up time, and mac address
and then have all this output to a database file. At the command prompt I've tried:
wmic qfe get description, hotfixid
This does return the patch information I'm looking for, but how do I combine that line of code with:
wmic os get version, csname, serialnumber, lastbootuptime
and
wmic nicconfig get macaddress
and then get all this to output to a database file?Thank you for the links. I checked out http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx and
found lots of good information. I also found a good command that will print information to a text file.
Basically what I'm trying to do is retrieve a list of all installed updates (Windows updates and 3rd party updates). I do like that the below code because it gives me the KB numbers for the Windows updates. I need this information so my IT co-workers &
I can keep track of which of our user computers need a patch/update installed and preferably which patch/update. The minimum we want to know is which patches / updates have been installed on which computer. If you wondering why we don't have Windows automatic
updates enable, that's because we are not allowed to.
This is my code so far.
#if you want the computer name, use this command
get-content env:computername
$computer = get-content env:computername
#list of installed patches
Get-Hotfix -ComputerName $computer#create a text file listing this information
Get-Hotfix > 'C:\users\little e\Documents\WMI help\PowerShell\printOutPatchList.txt'
I know you don't want to tell me the code that will print this out to a database (regardless if it's Access or SQL), and that's find. But maybe you can tell me this. Is it possible to have the results of this sent to a database file or do I need to go into
SQL and write code for SQL to go out and grab the data from an Excel file or txt file? If I'm understanding this stuff so far, then I suspect that it can be done both ways, but the code needs to be written correctly for this to happen. If it's true, then which
way is best (code in PowerShell to send information to SQL or SQL go get the information from the text file or Excel file)? -
I need help with my code..
hi guys. as the subject says I need help with my code
the Q for my code is :
write a program that reads a positive integer x and calculates and prints a floating point number y if :
y = 1 ? 1/2 + 1/3 - ? + 1/x
and this is my code
This program that reads a positive integer x and calculates
and prints a floating point number y if :
y = 1 - 1/2 + 1/3 - ? + 1/x
import java.util.Scanner; // program uses class Scanner
class Sh7q2
// main method begins execution of Java application
public static void main( String args[] )
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
int i = 1; // i is to control the loop
int n = 2; // n is suppose to control the number sign
int x; // a positive integer entered by the user
int m;
System.out.println("Enter a positive integer");
x = input.nextInt();
do
m = (int) Math.pow( -1, n)/i;
System.out.println(m);
n++;
i++;
while ( m >= 1/x );
} // end method main
} // end class Sh7q2 when I compile it there is no error
but in the run it tells me to enter a positive integer
suppose i entered 5
then the result is 1...
can anyone tell me what's wrong with my codeThis program that reads a positive integer x and calculates
and prints a floating point number y if :
y = 1 - 1/2 + 1/3 - ? + 1/x
import java.util.Scanner; // program uses class Scanner
class Sh7q2
// main method begins execution of Java application
public static void main( String args[] )
// create Scanner to obtain input from command window
Scanner input = new Scanner( System.in );
int i = 1; // i is to control the loop
int n = 1; // n is suppose to control the number sign
int x; // a positive integer entered by the user
double m;
int a = 1;
double sum = 0;
System.out.println("Enter a positive integer");
x = input.nextInt();
for ( i = 1; a <= x; i++)
m = Math.pow( -1, n+1)/i;
sum = sum + m;
n++;
a++;
System.out.print("y = " + sum);
} // end method main
} // end class Sh7q2is it right :S -
Help with ASP Connections - New User
I just set up a hosting account with 1 and 1 for a simple
website to catalog a series of yo-yo contest that we coordinate. I
have a simple MS Access database for organizing contest information
that we are trying to get online.
I am new to the application side of this and know very little
about connection strings, DSN, etc. I am experiencing problems with
connecting to the MS Access database that I have uploaded to the
1and 1 servers. If I hardcode the Javascript into the page, I can
connect and pull information but I definitely want to take
advantage of the design interface that Dreamweaver MX 2004 offers.
This is the code from the page that I can get working based
on the FAQ Sheet that 1and 1 offers for database connections:
<html>
<title>Database query using ASP</title>
<body bgcolor="FFFFFF">
<h2>Query table <b>Products</b> with
ASP</h2>
<%
Set dbaseConn = Server.CreateObject("ADODB.Connection")
dbaseConn.Open "DRIVER={Microsoft Access Driver
(*.mdb)};DBQ=" & Server.Mappath("\db\League.mdb") & ";"
SQLQuery = "SELECT * FROM Contest_Information"
Set RS = dbaseConn.Execute(SQLQuery)
%>
<%
Do While Not RS.EOF
%>
<%=RS("cStartDate")%>, <%=RS("cName")%>,
<%=RS("cWebsite")%> List
<p>
<%
RS.MoveNext
Loop
RS.Close
Set RS = Nothing
dbaseConn.Close
Set dbaseConn = Nothing
%>
</body>
</html>
If I put in a "Custom Connection String" using the previous
code:
"DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" &
Server.Mappath("\db\League.mdb") & ";"
Dreamweaver can connect to the database when the connection
is 'tested' but cannot pull any tables and therefore cannot create
bindings.
Guidance...help...I'm stuck...
Thanks in advance.Hello Lucky.da.boss,
And welcome to Apple Discussions!
is asking can I or is there anyway i can transfer my music off that iPod to my touch?
See this article for tips on how to copy music from your 5th generation iPod to your iTunes library. Once you have successfully done that, you can sync them over to your iPod Touch. There is no way to do it directly.
http://macs.about.com/od/backupsarchives/ss/ipodcopy.htm
Also, I have two applications that aren't downloading I want to know how to delete them.
Tap your finger on one of them and hold it there until you see all your Apps start to wiggle. You will also see a small x in the upper right hand corner of the Apps you can delete. Go ahead and tap this to delete the App. When you are finished, hit the Home button to make the Apps stop wiggling. It might also help to have a look at your iPod's *User Guide.
http://manuals.info.apple.com/enUS/iPod_touch_iOS4.1_UserGuide.pdf
Can you have constant internet service or do they run solely off wi-fi?
Only Wi-fi.
B-rock -
Noob needs help with this code...
Hi,
I found this code in a nice tutorial and I wanna make slight
adjustments to the code.
Unfortunately my Action Script skills are very limited... ;)
This is the code for a 'sliding menue', depending on which
button u pressed it will 'slide' to the appropriate picture.
Here's the code:
var currentPosition:Number = large_pics.pic1._x;
var startFlag:Boolean = false;
menuSlide = function (input:MovieClip) {
if (startFlag == false) {
startFlag = true;
var finalDestination:Number = input._x;
var distanceMoved:Number = 0;
var distanceToMove:Number =
Math.abs(finalDestination-currentPosition);
var finalSpeed:Number = .2;
var currentSpeed:Number = 0;
var dir:Number = 1;
if (currentPosition<=finalDestination) {
dir = -1;
} else if (currentPosition>finalDestination) {
dir = 1;
this.onEnterFrame = function() {
currentSpeed =
Math.round((distanceToMove-distanceMoved+1)*finalSpeed);
distanceMoved += currentSpeed;
large_pics._x += dir*currentSpeed;
if (Math.abs(distanceMoved-distanceToMove)<=1) {
large_pics._x =
mask_pics._x-currentPosition+dir*distanceToMove;
currentPosition = input._x;
startFlag = false;
delete this.onEnterFrame;
b1.onRelease = function() {
menuSlide(large_pics.pic1);
b2.onRelease = function() {
menuSlide(large_pics.pic2);
b3.onRelease = function() {
menuSlide(large_pics.pic3);
b4.onRelease = function() {
menuSlide(large_pics.pic4);
I need to adjust five things in this code...
(1) I want this menue to slide vertically not horizontally.
I changed the 'x' values in the code to 'y' which I thought
would make it move vertically, but it doesn't work...
(2) Is it possible that, whatever the distance is, the
"sliding" time is always 2.2 sec ?
(3) I need to implement code that after the final position is
reached, the timeline jumps to a certain movieclip to a certain
label - depending on what button was pressed of course...
I tried to implement this code for button number two...
b2.onRelease = function() {
menuSlide(large_pics.pic2);
if (currentPosition = finalDestination) {
this.large_pics.pic2.gotoAndPlay("s1");
--> sliding still works but it doesn't jump to the
appropriate label...
(4) I wanna add 'Next' & 'Previous' buttons to the slide
show - what would be the code in this case scenario ?
My first thought was something like that Flash checks which
'pic' movieclip it is showing right now (pic1, pic2, pic3 etc.) and
depending on what button u pressed u go to the y value of movieclip
'picX + 1' (Next button) or 'picX - 1' (Previous button)...
Is that possible ?
(5) After implementing the Next & Previous buttons I need
to make sure that when it reached the last pic movieclip it will
not go further on the y value - because there is no more pic
movieclip.
Options are to either slide back to movieclip 'pic1' or
simply do nothing any more on the next button...
I know this is probably Kindergarten for you, but I have only
slight ideas how to do this and no code knowledge to back it up...
haha
Thanx a lot for your help in advance !
Always a pleasure to learn from u guys... ;)
MikeHi,
I made some progress with the code thanx to the help of
Simon, but there are still 2 things that need to be addressed...
(1) I want the sliding time always to be 2.2 sec...
here's my approach to it - just a theory but it might work:
we need a speed that changes dynamically depending on the
distance we have to travel...
I don't know if that applies for Action Scrip but I recall
from 6th grade, that...
speed = distance / time
--> we got the time (which is always 2.2 sec)
--> we got the disctance
(currentposition-finaldestination)
--> this should automatically change the speed to the
appropriate value
Unfortunately I have no clue how the action script would look
like (like I said my action script skills are very limited)...
(2) Also, one other thing I need that is not implemented yet,
is that when the final destination is reached it jumps to a certain
label inside a certain movieclip - every time different for each
button pressed - something like:
if (currentPosition = finalDestination) {
this.large_pics.pic2.gotoAndPlay("s1");
that statement just doesn't work when I put it right under
the function for each button...
Thanx again for taking the time !!!
Mike -
Help with html code - inserting video into Muse
I am seeking help writing the code to insert a video into Muse. I uploaded video into my Business Catalyst hosting. I need it to autoplay, loop and not show any controls or frames.
When I host video on Vimeo or YouTube, I see markings on the video that is why I am trying to just host in the same place that the files are stored for my website. If there is a way to host on youtube with out any markings showing up on the video I would be open to that too.
I don't want to see any play button or time bar.
Thanks in advance!!Hello,
Just as an FYI - we also have an HTML5 video tool over at MuseThemes.com that achieves this, but works on mobile devices as well. The link above looks like it uses Flash, which isn't common anymore since the release of HTML5 based video.
Simply drag the widget out onto your canvas, and link up your videos / set options like loop, controls visible, etc. It's quite a flexible widget, and there's a complete training video included so you don't get stuck
Check out the widget here
Just wanted to provide another alternative that could be helpful. Cheers!
Steve Harris
MuseThemes.com -
Help with abap code in Transformation
Hi Experts,
we have a scenario where we load delta data from an DSO into a Cube.
The records in the DSO looks like below.
Location as (L)
WorkOrder as (W)
Startdate(DDMMYYYY)/time (HH:MM:SS) as (S)
Finishdate/time as (F)
L1
W1
21/04/2009/10:00:00
21/04/2009/12:00:00
L1
W2
21/04/2009/14:00:00
21/04/2009/23:00:00
|| L1 ||W3|| 21/04/2009/16:00:00 ||21/04/2009/20:00:00 ||
Total time ( April 2009 ) for above Location L1 should be calculated as a difference between W1 and W2 since W3 is a overlapping record. So the result would be 13 Hrs. Work Orders are summarised, so we dont need work order info in the output.
Can you experts help me with the code to implement??
Thanks,
DVFor each location, for example L1, move the records to an internal table itab.
sort itab by startdate.
read table itab index 1.
You will get the first value.
sort itab by finishdate descending.
read table itab index 1.
you will get the second value.
Calculate the difference and populate it to the internal table.
finally modify the source package.
I have just given the logic. I hope you can build upon this.
I hope it helps.
Thanks. -
Sry about this amount of code lines.... but i realy need help...
I must insert into a table, the date, like 10/12/2009, and the time, like 22:34:12... but, when i select the date from a datepicker, and insert the time into a text field... i got this result:
if the date inserted was 12/12/2009 and the time 22:34:12
result is.......................12/12/0922 34:12:00 <<<<< it´s getting just the two lasts number of the year and inserting the two firsts number of the time into the year, like year 0922 ....
I´m using a javascript source to create a datepicker......
and that is the procedure to insert into the table.......
PROCEDURE set_atendimento(
p_id_chamado_atendimento IN chamado_atendimento.id_chamado_atendimento%TYPE,
p_id_chamado IN chamado_atendimento.id_chamado%TYPE,
p_informacao IN chamado_atendimento.informacao%TYPE,
p_datahora_inicio IN chamado_atendimento.datahora_inicio%TYPE,
p_datahora_fim IN chamado_atendimento.datahora_fim%TYPE,
p_hora_inicio IN VARCHAR2,
p_hora_fim IN VARCHAR2
IS
v_inicio DATE;
v_fim DATE;
BEGIN
v_inicio := TO_DATE(TO_CHAR(p_datahora_inicio || p_hora_inicio), 'DD/MM/YYYY HH24:MI:SS');
v_fim := TO_DATE(TO_CHAR(p_datahora_fim || p_hora_fim), 'DD/MM/YYYY HH24:MI:SS');
UPDATE
chamado_atendimento
SET
informacao = UPPER(p_informacao)
WHERE
id_chamado_atendimento = p_id_chamado_atendimento;
IF SQL%NOTFOUND THEN
INSERT INTO
chamado_atendimento
(id_chamado_atendimento, id_chamado, id_operador, datahora_inicio, datahora_fim, informacao)
VALUES
(SEQ_CHAMADO_ATENDIMENTO.nextval, p_id_chamado, pkg_operador.get_id_operador, v_inicio, v_fim, UPPER(p_informacao));
END IF;
END;
that is the JAVASCRIPT
<script language="JavaScript" type="text/JavaScript">
$(function(){
$.datepicker.setDefaults({
showOn: 'button',
buttonImage: '/i/themes/fwsac/includes/jquery/images/calendario.gif',
buttonImageOnly: true,
closeText: 'Fechar',
prevText: '<Anterior',
nextText: 'Próximo>',
currentText: 'Hoje',
monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],
dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sabado'],
dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'],
dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'],
dateFormat: 'dd/mm/yy',
firstDay: 0,
isRTL: false,
showAnim: 'slide'
$('#P5004_DATAHORA_INICIO , #P5004_DATAHORA_FIM').datepicker({ beforeShow: fdateRange });
function fdateRange(input){
return {
minDate: (input.id == "P5004_DATAHORA_FIM" ? $("#P5004_DATAHORA_INICIO").datepicker("getDate") : null),
maxDate: (input.id == "P5004_DATAHORA_INICIO" ? $("#P5004_DATAHORA_FIM").datepicker("getDate") : null)
</script>
what i must change to get the 4 numbers of the year and all numbers of the time and conca " || " with the date??
can someone help with this, pls??Hello brugo,
Try this:
v_inicio := to_nchar((to_date(p_datahora_inicio || p_hora_inicio , 'DD/MM/YYYY HH24:MI:SS')), 'DD/MM/YYYY HH24:MI:SS');
v_inicio := to_nchar((to_date(p_datahora_fim || p_hora_fim , 'DD/MM/YYYY HH24:MI:SS')), 'DD/MM/YYYY HH24:MI:SS');When I substitute strings: '10/12/2009' for p_datahora_inicio and '22:30:05' for p_hora_inicio, using this format string, I get: 10/12/2009 22:30:05 as a result.
Don.
You can reward this reply by marking it as either Helpful or Correct :) -
Help with html code. not running properly once on server
The video works fine in captivate and works once i publish it, but when I try to upload it onto the server it does not. This is my first time using captivate 4, and when I matched the codes from my old movies they were quite different. So I just messed with the code I had and made it lok like the old vodes and it runs fine on the server.
I was wondering if anyone had any ideas on what is going on with the code that it does not work on the server?
Thank you!!!!!
-danielleHello Sue. It's very easy actually.
If you have the lastest update of Muse CC from Nov 2013, there is a FREE Muse Library by musegrid.com that you can download from the Adobe Muse Exchange page that does this specifically using Google Analytics. Here is the direct link should you like to check it out:
http://muse.adobe.com/exchange-library/add-google-analytics
Start by "Right Clicking" on the "Master Page Icon" in the "Plan View" and choose "Page Properties" from the list of menu options available.
This will open up the "Page Properties Dialog Box" for the entire site. Once that dialog box is open, paste your code into the "Metadata" tab section (I believe that tab is displayed at default - at least on the Mac it is - I'm pretty sure it's the same on the Windows platform).
All anaytics embed code goes in the <head> tag of an html page (note: it actually says "HTML for <head>" at the top of the embed window area - making it helpful to know you're in the right area). This is also where you would add any <meta> tags too like facebook's OpenGraph code etc.
If using more than one master, included it to all masters. If just using it on a specific page - say like a landing page, just go to that particular page in your site's "Plan View" and paste it there instead.
Incase i get too "wordy" i've attached screen shots of what these should look like.
Good luck Sue!
And congratulations on a nice new computer too - its got "juice". -
What is wrong with this code? It does not play. It should play in Windows-7 and XP with IE8.
Also, on the screen there is a large white area where the <video> code is. Why?
How do I get rid of it?
Thanks.
<!DOCTYPE HTML>
<html>
<head>
<title>video testing</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.mp4">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.mp4">Download mp4 </a> button to start video.</p>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.webm">Download">http:// www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.webm">Download webm </a> button to start video.</p>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.ogg">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.ogg">Download ogg </a> button to start video.</p>
<p>Click the <a href="Download" _mce_href="http://www.amelox.com/Media/UX-CT-Tour-Short-1024d12db.flv">Download">http://w ww.amelox.com/Media/UX-CT-Tour-Short-1024d12db.flv">Download flv </a> button to start video.</p>
<video width="480" height="270" controls="controls">
<source media="all" src="rtp:UX-CT-Tour-Short-1024d12db.mp4" type='video/mp4; codecs="vp8, vorbis"' />
<source media="all" src="rtp:UX-CT-Tour-Short-1024d12db.webm" type='video/webm; codecs="avc1.42E01E, mp4a.40.2"' />
<source media="all" src="rtp:UX-CT-Tour-Short-1024d12dB.ogg" type="video/ogv; codecs="theora, vorbis"" />
<object data="id=player1" width="480" height="270">
<param name="classid" value="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" />
<param name="movie" value="player.swf" />
<param name="flashvars" value="UX-CT-Tour-Short-1024d12db.flv & autostart=true" />
<param name="allowfullscreen" value="false" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="allowscriptaccess" value="always" />
<embed flashvars="file=UX-CT-Tour-Short-1024d12db.flv & autostart=true" id="player1" src="player.swf"
allowfullscreen="true" allowscriptaccess="always" width="480" height="270" />
</object>
</video>
<p>here is some more text</p>
</body>
</html>Data load? Did it pass a syntax check?
Anyway, maybe this will help:
DATA: create_date TYPE sy-datum,
update_date TYPE sy-datum,
number_of_days_closed(4) TYPE c,
alert_close_flag(1) TYPE c,
result LIKE number_of_days_closed.
IF alert_close_flag EQ 'Y'.
number_of_days_closed = update_date - create_date .
ELSE.
CLEAR number_of_days_closed.
ENDIF.
result = number_of_days_closed.
Rob -
Sql injection attack - need help changing ASP code
Our web server was attacked yesterday by SQL injection. So I
quickly learned about the holes in the code that was generated by
Dreamweaver MX 2004.
I found the help article on the Adobe website to fix the ASP
code; however I need more information for my particular case. I
don't know how to get my cursor type and location settings into the
new code.
MY ORIGINAL CODE
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_Oncology_STRING
Recordset1.Source = "SELECT * FROM dbo.Oncology_Dir WHERE
Oncology_ID = " + Replace(Recordset1__MMColParam, "'", "''") + ""
Recordset1.CursorType = 0
Recordset1.CursorLocation = 3
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
THE NEW CODE, WHICH NEEDS TO BE FIXED TO REFLECT CURSOR TYPE
AND LOCATION ABOVE.
<%
Dim Recordset1
Dim Recordset1_cmd
Dim Recordset1_numRows
Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
Recordset1_cmd.ActiveConnection = MM_Oncology_STRING
Recordset1_cmd.CommandText = "SELECT * FROM dbo.Oncology_Dir
WHERE Oncology_ID = ?"
Recordset1_cmd.Prepared = true
Recordset1_cmd.Parameters.Append
Recordset1_cmd.CreateParameter("param1", 5, 1, -1,
Recordset1__MMColParam) ' adDouble
Set Recordset1 = Recordset1_cmd.Execute
Recordset1_numRows = 0
%>
What exactly is the 5,1,-1 in the code above?
Any help would be very much appreciated as my ASP page
(although secured from SQL injection) is not working properly.
Thanks,
--Jen
--JenThe new snippet is not vulnerable to SQL injection. It uses a
command
object and actual defined parameters, so you're safe. You
cannot change the
cursor type or location on that object.
"jennday" <[email protected]> wrote in
message
news:f85omh$ngg$[email protected]..
> Our web server was attacked yesterday by SQL injection.
So I quickly
> learned
> about the holes in the code that was generated by
Dreamweaver MX 2004.
> I found the help article on the Adobe website to fix the
ASP code; however
> I
> need more information for my particular case. I don't
know how to get my
> cursor type and location settings into the new code. -
Help with Flash code in web page
I have a Flash file in the masthead of my web site that shows
a slideshow. I want to code the page so that if the viewer doesn't
have Flashplayer, an alternative jpeg comes up in the masthead
instead of the file with the flash slideshow. I'm afraid I'm new to
most of this.... I'd very much appreciate help with the
programming.
Thank you!
Here's the file:
http://www.ewgaphilly.com/cs3index.html
(the slide show isn't working at the moment -- a server issue). The
alternate file I want to put in is:
http://www.ewgaphilly.com/alternate_mast.jpgI'm sorry to be so dull on this, but I'd appreciate if you
could tell me specifically which is the embed code (the codes in
the <head>? What to I change here? I really appreciate your
help.
Here is what I get when I publish the movie and the open the
html file:
<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>main_slideshow_philly</title>
<script language="JavaScript" type="text/javascript">
<!--
// Globals
// Major version of Flash required
var requiredMajorVersion = 7;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 0;
// the version of javascript supported
var jsVersion = 1.0;
// -->
</script>
<script language="VBScript" type="text/vbscript">
<!-- // Visual basic helper required to detect Flash
Player ActiveX control version information
Function VBGetSwfVer(i)
on error resume next
Dim swControl, swVersion
swVersion = 0
set swControl =
CreateObject("ShockwaveFlash.ShockwaveFlash." + CStr(i))
if (IsObject(swControl)) then
swVersion = swControl.GetVariable("$version")
end if
VBGetSwfVer = swVersion
End Function
// -->
</script>
<script language="JavaScript1.1"
type="text/javascript">
<!-- // Detect Client Browser type
var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ?
true : false;
var isWin =
(navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true :
false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ?
true : false;
jsVersion = 1.1;
// JavaScript helper required to detect Flash Player PlugIn
version information
function JSGetSwfVer(i){
// NS/Opera version >= 3 check for Flash plugin in plugin
array
if (navigator.plugins != null &&
navigator.plugins.length > 0) {
if (navigator.plugins["Shockwave Flash 2.0"] ||
navigator.plugins["Shockwave Flash"]) {
var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? "
2.0" : "";
var flashDescription = navigator.plugins["Shockwave Flash" +
swVer2].description;
descArray = flashDescription.split(" ");
tempArrayMajor = descArray[2].split(".");
versionMajor = tempArrayMajor[0];
versionMinor = tempArrayMajor[1];
if ( descArray[3] != "" ) {
tempArrayMinor = descArray[3].split("r");
} else {
tempArrayMinor = descArray[4].split("r");
versionRevision = tempArrayMinor[1] > 0 ?
tempArrayMinor[1] : 0;
flashVer = versionMajor + "." + versionMinor + "." +
versionRevision;
} else {
flashVer = -1;
// MSN/WebTV 2.6 supports Flash 4
else if
(navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1)
flashVer = 4;
// WebTV 2.5 supports Flash 3
else if
(navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1)
flashVer = 3;
// older WebTV supports Flash 2
else if (navigator.userAgent.toLowerCase().indexOf("webtv")
!= -1) flashVer = 2;
// Can't detect in all other cases
else {
flashVer = -1;
return flashVer;
// If called with no parameters this function returns a
floating point value
// which should be the version of the Flash Player or 0.0
// ex: Flash Player 7r14 returns 7.14
// If called with reqMajorVer, reqMinorVer, reqRevision
returns true if that version or greater is available
function DetectFlashVer(reqMajorVer, reqMinorVer,
reqRevision)
reqVer = parseFloat(reqMajorVer + "." + reqRevision);
// loop backwards through the versions until we find the
newest version
for (i=25;i>0;i--) {
if (isIE && isWin && !isOpera) {
versionStr = VBGetSwfVer(i);
} else {
versionStr = JSGetSwfVer(i);
if (versionStr == -1 ) {
return false;
} else if (versionStr != 0) {
if(isIE && isWin && !isOpera) {
tempArray = versionStr.split(" ");
tempString = tempArray[1];
versionArray = tempString .split(",");
} else {
versionArray = versionStr.split(".");
versionMajor = versionArray[0];
versionMinor = versionArray[1];
versionRevision = versionArray[2];
versionString = versionMajor + "." + versionRevision; //
7.0r24 == 7.24
versionNum = parseFloat(versionString);
// is the major.revision >= requested major.revision AND
the minor version >= requested minor
if ( (versionMajor > reqMajorVer) && (versionNum
>= reqVer) ) {
return true;
} else {
return ((versionNum >= reqVer && versionMinor
>= reqMinorVer) ? true : false );
return (reqVer ? false : 0.0);
// -->
</script>
</head>
<body bgcolor="#ffffff">
<!--url's used in the movie-->
<!--text used in the movie-->
<script language="JavaScript" type="text/javascript">
<!--
var hasRightVersion = DetectFlashVer(requiredMajorVersion,
requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable
version
var oeTags = '<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
+ 'width="780" height="444"'
+ 'codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="main_slideshow_philly.swf"
/><param name="quality" value="high" /><param
name="bgcolor" value="#ffffff" />'
+ '<embed src="main_slideshow_philly.swf" quality="high"
bgcolor="#ffffff" '
+ 'width="780" height="444" name="main_slideshow_philly"
align="middle"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="high"'
+ 'allowScriptAccess="sameDomain"'
+ 'type="application/x-shockwave-flash"'
+ 'pluginspage="
http://www.macromedia.com/go/getflashplayer">'
+ '<\/embed>'
+ '<\/object>';
document.write(oeTags); // embed the flash movie
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'alternate.giv';
document.write(alternateContent); // insert non-flash
content
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not
support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content
requires the Macromedia Flash Player.
<a href="
http://www.macromedia.com/go/getflash/">Get
Flash</a>
</noscript>
</body>
</html>
Here is my existing code in my home page:
<!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>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>EWGA Greater Philadelphia Executive Women's Golf
Association</title>
<style type="text/css">
<!--
@import url("/ewgacss.css");
-->
</style>
<script src="Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
<style type="text/css" media="screen">
<!--
@import url("p7tbm/p7tbm_center_08.css");
-->
</style>
<script type="text/javascript"
src="p7tbm/p7tbmenu.js"></script>
</head>
some other stuff goes in here!!
then...
<script type="text/javascript">
AC_FL_RunContent( 'codebase','
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','780','height','444','title','EWGA
Greater
Philadelphia','src','/main_slideshow_philly','quality','high','pluginspage','
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','/main_slideshow_philly'
); //end AC code
</script>
<noscript>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
width="780" height="444" title="EWGA Greater Philadelphia">
<param name="movie" value="/main_slideshow_philly.swf"
/>
<param name="quality" value="high" />
<embed src="/main_slideshow_philly.swf" quality="high"
pluginspage="
http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="780"
height="444"></embed>
</object>
</noscript> -
Can anyone help with this code
i am trying to create a html5 video gallery for my website I was wondering if anyone can help me with this code : Am i missing something got this from the adobe widget browser i can get the button fuctions but i can not seem to get the video to play or work..
This is the full page i am still working on it but the video code which i posted earlier is not working...
123456789101112131415
Home
Biography
To Be Lead
Gallery
Videos
Memorial Page
Wallpaper
Blog
Forum
Contact
Randy Savage Bio
Randy's Facts 101
His Early Career
Randy's Career in the WWF
Randy's Career in WCW
The Mega Powers
Mega powers Bio Mega Powers Facts 101
PM to fans and Elizabeth
Randy's Radio interview
His Death
Elizabeth Hulette
Elizabeth Bio Elizabeth Facts 101 Her Career in the WWF Her Career in WCW Later Life Farewell to a Princess Elizabeth's Radio Interview Elizabeth Death
Sherri Martel
Gorgeous George
Team Madness
Early Years
ICW Gallery
WWF Gallery
WCW Gallery
NWO Gallery
Memorial Page for Randy
Memorial Page for Elizabeth
Video of the Month
Site Disclaimer
Macho-madness is in no way in contact with World Wrestling Entertainment. All photos are copyright to World Wrestling Entertainment or their respective owners and is being used under the fair copyright of Law 107.
©macho-madness.net All right's Reserved.
Affiliates
Want to be an affiliate, elite, or partner site? Email: [email protected] with the list of things below.
Place in the subject of email: “Randy Savage Online Affiliation”.
Name:
Email:
Site Name:
Site URL:
When Will The Site Be Added?:
To see A List Click Here...
©macho-madness.net All right's Reserved.
Offical Links
Maybe you are looking for
-
Problem with slow execution on a cFP-2120
I have an application that runs on a cFP-2120, using web interface for the user to interact with the program. I have noticed that in order to get the web interface to get updated I have to use property nodes and write to the value property, see this
-
Problem in function BAPI_IPAK_CHANGE : Changing info-package parameter.
Dear All, Would you like please kindly help me regarding my problem ?? My problem is when i'm gonna run this function (written in subject). It's error, because One of parameter in info-package is mandatory. But I have already input value for the mand
-
All of a sudden - Looking for PPPoE Host
Setup: I am connecting to the internet via Airport Express, through an ISP provided modem. I am using PPPoE as the protocol for connecting to my ISP. Problem: The setup was working perfectly for me, when all of a sudden 5 days back, I got the ticker
-
How to put borders in the tabular form report
Hi, I need to put borders in the tabular form report in the apex UI .I mean in the by default no boundary comes so I need vertical lines in the column . So how to do that. Thanks in advance. Edited by: Vivek on May 22, 2012 8:25 PM
-
Device Removal Schedule not happening
Not sure where to post this, I'm happy for someone to tell me which sub would have been better. I've recently discovered a few issues with our managed devices, the first is the Device Removal Schedule, it's not happening. I have it set to remove afte