3,892 Posted Topics

Member Avatar for hughv

Considering not everyone here uses Windows as their primary operating system; posting a screenshot and the relevant piece of code would help you in getting quick assistance. Also since you mention cutting off the image, it might just come out to be a CSS issue if you are applying some …

Member Avatar for ~s.o.s~
0
95
Member Avatar for gorty

That will in a large way depend on how your web page i.e. JSP is structured. The most simple way would be to set the value of the second column as per the value of the first column fields retrieved when the form is submitted as soon as the >> …

Member Avatar for ~s.o.s~
0
81
Member Avatar for briglia23

Keep a hidden field which would carry the content of the variable [ICODE]idArticolo [/ICODE]to the next page which can be then retrieved using the [ICODE]getParameter [/ICODE]method of the [ICODE]HttpServletRequest [/ICODE]object. [code] <!-- In your HTML --> <form action="/someServlet" id="frm" <input type="hidden" name="hid" id="hid" value="default"> </form>[/code] [code] // In your javascript …

Member Avatar for ~s.o.s~
0
100
Member Avatar for raj2476

Developing cross browser applications is a real pain. A good option is to use one of the Javascript libraries out there which handle most of the Javascript inconsistencies out there though CSS related issues would have a different story to tell. If it's Firefox, your best bet would be to …

Member Avatar for R0bb0b
0
80
Member Avatar for thompa

On the surface the code looks error free though I am pretty sure that IE doesn't play well with [icode]getAttribute[/icode] and [icode]setAttribute[/icode]. Just replace them with [icode]this.href[/icode] and [icode]this.title[/icode] (or better yet, just pass [icode]this[/icode]!). If you still are unable to find a solution, there are a few IE Javascript …

Member Avatar for thompa
0
356
Member Avatar for anthrex

It probably has got something to do with a faulty javascript snippet dealing with Ajax. A lightweight library along the lines of 'Ajax Toolbox' might just make your pain go away. If not, take a look at the IE debuggers out there to assist you in finding the problematic piece …

Member Avatar for ~s.o.s~
0
334
Member Avatar for gorty

The [ICODE]getParameter [/ICODE]method of [ICODE]HttpServletRequet [/ICODE]works on the [ICODE]name [/ICODE]of form elements and not [ICODE]ID[/ICODE]'s. You need something along the lines of: [code][..] <input type="text" name="tname" id="tname"> [..][/code] Oh and BTW, don't use scriptlets; they are *bad*. There are better ways of developing a web application with J2EE. (e.g. JSTL, …

Member Avatar for ~s.o.s~
0
59
Member Avatar for nschessnerd

Use the [icode]ServletContext's[/icode] [icode]getRealPath()[/icode] method to grab hold of the OS dependent real path of your web application's root. For e.g. on Windows system, it might look something along the lines of [icode]F:\Tomcat6\webapps\MyWebApplication][/icode]. BTW, I am pretty sure that there are better ways of doing the thing you are trying …

Member Avatar for ~s.o.s~
0
178
Member Avatar for deepaksworld

Why not just replicate/take inspiration from the logic and create one in C++? I am pretty sure the efforts put in creating one from scratch in C++ would be far less than calling a script from your C++ program though I am pretty sure that the latter is a pretty …

Member Avatar for ~s.o.s~
0
83
Member Avatar for c++ prog

Dynamic in the sense of generating dynamic content on fly or a site with client side enhancements? For the former, learning a server side web development language like PHP/Python/Java would be the way to go. If it's the latter, you would have to know a great deal about Javascript or …

Member Avatar for ~s.o.s~
0
53
Member Avatar for shthap3ns

Queries related to Javascript libraries like Prototype are better asked in the specific forums (unless you already haven't asked it there!) since there might be many out there who would have faced a similar problem and hence is one of the fastest way of getting help.

Member Avatar for ~s.o.s~
0
134
Member Avatar for ravi.prateek

The error says it all: [code]Error: document.getElementById(treeid) has no properties Source file: http://gizmoearth.com/simpletreemenu.js Line: 10[/code] You should start developing in Firefox and use its Error Console feature for Javascript development. Another good option would be to get hold of Firebug which allows you to do Javascript debugging!

Member Avatar for ~s.o.s~
0
143
Member Avatar for Dani

> - You can now view all of your reputation in your control panel. Yay! :-) > Removing "Posting Games" from a user's total post count would be just awesome. However nice it might sound, it would just end up doing injustice to people who invest their time in Daniweb …

Member Avatar for linux
0
113
Member Avatar for Lakepoint

> All they do is add a thin stub to the jar that launches a JVM and passes it that jarfile. That is just one way of doing it. There are different ways of making an executable of which one is a true way of converting java file to an …

Member Avatar for dreadrocksean
0
1K
Member Avatar for php4ever

The only way to exclude fields from being passed with the querystring is to mark them as disabled. Disabled form data is not submitted. How to achieve this would be your call. You can on form submit call a function which would disable all the fields whose trimmed value is …

Member Avatar for R0bb0b
0
142
Member Avatar for mgt

@mgt: Don't create multiple threads for the same topic. It ends up wasting the time of people who reply to those threads thinking there was no reply given.

Member Avatar for ~s.o.s~
0
3K
Member Avatar for raj157

You need to call the print function after creating the object. Something along the lines of obj.print().

Member Avatar for William Hemsworth
0
733
Member Avatar for mgt

Keep a hidden form element on your page which will be populated / updated whenever the user submits the form / changes the value of the secondary drop down. This hidden field can then be read using PHP at the server in the same way you read normal text fields.

Member Avatar for ~s.o.s~
0
949
Member Avatar for Haktivex
Member Avatar for J_M44053

When on a project I drink 6 cups of tea / 10 cups of coffee. Accelerates my thinking process and increases the dependence of something which is frowned upon by my peers... ;)

Member Avatar for xtremeham
0
216
Member Avatar for nihardhruva

IMO creating and manipulating threads in a managed environment is bad in itself since the request is already being processed by a thread and the chances of the programmer screwing up with threading and making the mess out of the entire affair is pretty high. Plus, there is no reliable …

Member Avatar for jwenting
0
245
Member Avatar for sittas87
Member Avatar for ~s.o.s~
0
124
Member Avatar for l_kris06

A typo there: [code]if (expandable.style.display = 'none') {[/code] should be: [code]if (expandable.style.display == 'none') {[/code]

Member Avatar for digital-ether
0
2K
Member Avatar for samarinder

The error message "Cannot make a static reference to the non-static method" says it all. You need to first instantiate the XYChartExample2 class before invoking its method. BTW, scriptlets are bad and knowing the basics of Java helps before jumping into J2EE.

Member Avatar for samarinder
0
153
Member Avatar for Thirusha

You can loop over all the form elements using the [icode]elements[/icode] attribute of the form or get all the elements under the div and do a selective filtering. [code]<!-- Author: ~s.o.s~ --> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv"Script-Content-Type" content="text/javascript"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Example</title> <script …

Member Avatar for Thirusha
0
603
Member Avatar for rickprospers

Though I am not sure as to what you are trying to achieve, you are getting the mentioned error because the URL constructor (the call [icode]new URL()[/icode]) throws a checked exception which you need to either catch or make the method have a throws clause. [code] try { URL url …

Member Avatar for rickprospers
0
196
Member Avatar for pssturges

[icode]cover[0][/icode] is not a valid name. There are a fixed set of [URL="http://www.w3.org/TR/1999/REC-html401-19991224/types.html#type-name"]rules [/URL]which govern what exactly a valid name looks like. Keep it something like [icode]cover0[/icode]. When developing, use Firefox so that tracing such errors is a breeze using the Firefox Error Console and Firebug plugin. You would get …

Member Avatar for pssturges
0
122
Member Avatar for blackheart_22

The best place for these types of questions would be the Peoplesoft support forum where many others might have faced the same problem.

Member Avatar for ~s.o.s~
0
40
Member Avatar for blackheart_22

Server side code has no place in the Javascript code, you should take a look at the generated code to pinpoint your problem. Use tools like the Error Console of Firefox and Firebug to debug your code.

Member Avatar for ~s.o.s~
0
264
Member Avatar for justinmyoung

How about posting the code which doesn't work and asking specific questions? That way it would be easier for the others to pinpoint the problem you are facing. If you are talking about dynamically creating form elements, Google for [icode]createElement[/icode] and [icode]appendChild[/icode].

Member Avatar for ~s.o.s~
0
33
Member Avatar for Solnyshko

Yes we would, take a look at the documentation of the [URL="http://www.w3schools.com/js/js_obj_string.asp"]String object[/URL] of Javascript; you would find all that you require to complete your task.

Member Avatar for ~s.o.s~
0
43
Member Avatar for luxmi_gee
Re: jsp

Since the original request has been solved, create a new thread for questions unrelated to it.

Member Avatar for guymanbuddude
0
122
Member Avatar for shobha1335

You need to use the 'selected' attribute of the OPTION element based on the value fetched from the database. [code] <selected name="selBox"> <option value="cityOne">City One</option> <option value="cityTwo" selected="selected">City Two</option> <option value="cityThree">City Three</option> </option>[/code] In the above snippet, "cityTwo" would be the value fetched from the database.

Member Avatar for ~s.o.s~
0
55
Member Avatar for scorpionz

Post the *relevant* code which is not working; it's probably one of those browser incompatibility issue you are facing there which is very much solvable.

Member Avatar for ~s.o.s~
0
792
Member Avatar for cacorat

> Javascript is amazing, I didn't think you could touch mysql with it! You can't, at least not with browser embedded Javascript. It's a different ball game altogether if you are using Server Side Javascript.

Member Avatar for masijade
0
355
Member Avatar for Asad__

You would need to use cookies for this purpose. When the drop down on your page is selected, you can set the required value in the cookie, navigate to that page and read the value from that cookie when the second page loads to populate the text box. For more …

Member Avatar for Asad__
0
129
Member Avatar for Ancient Dragon

It's not that you compulsorily need Winzip to open .zip files; they can be opened or processed using free softwares like [URL="http://www.7-zip.org/"]7zip[/URL].

Member Avatar for sarehu
0
234
Member Avatar for nadius

Don't use scriptlets, use something along the lines of JSTL or JSF. Don't use normal statements, use prepared / callable statements. Read the official Sun J2EE developer guide for J2EE best practices.

Member Avatar for ~s.o.s~
0
111
Member Avatar for samarinder

You need to first provide us an effort on your part before we can help you with your problem. Attempt it, tell us where you are getting stuck and you might just get lucky.

Member Avatar for ~s.o.s~
0
78
Member Avatar for nishanthaMe

This thread has got nothing to do with Javascript; it would be more relevant in the CSS section. Moved.

Member Avatar for ardeezstyle
0
100
Member Avatar for kmaven

If this poll is for registered users only, a better way would be to handle the voting part at the server side wherein an entry would be placed in the database against the users' name and be checked for each vote request so that he can vote only once. If …

Member Avatar for ~s.o.s~
0
105
Member Avatar for OmniX

> I have javascript and ALL of it works in IE but in FF NONE of it works at all. You are in luck; just take a sneak peak at the Error Console of Firefox (Tools -> Error Console) for any Javascript related errors. Also if you are into extensive …

Member Avatar for ~s.o.s~
0
156
Member Avatar for Diode

[quote=Anonymusius;262207][code]cout << "/a";[/code] untested but should work. it was something in that direction :P[/quote] No :) Its like [code] printf ("\a") ; // or printf ("\7") ; [/code]

Member Avatar for jephthah
0
9K
Member Avatar for supriya.iiita

> how to make div id's as unique (since it need to identify a unique div for each row) One way would be to create a separate counter (e.g. i) which would be incremented for each "for each" block and create an ID dynamically by appending the common name with …

Member Avatar for ~s.o.s~
0
212
Member Avatar for Brent.tc
Member Avatar for Nick Evan
0
226
Member Avatar for vp.softverm

The problem statement in itself is kind of confusing; it would be better if you posted a small relevant piece of code which would demonstrate the problem so that others can try to help you out. Also if you are allowed to, you can take help of some external utility …

Member Avatar for vp.softverm
0
109
Member Avatar for mikki2

> Is there a particular name for this type of comment box? Yes, it's called a WYSIWYG (What-you-see-is-what-you-get) editor. [URL="http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm"]Here [/URL]is one which you can use for your site.

Member Avatar for mikki2
0
102
Member Avatar for gangadhar.in

> I am new to java coding.I m struggling to make a below project. Can u plz. help on this > project. Grab hold of a copy of "Sun's J2EE 1.4 (1.5) Tutorial" freely available online which hosts some sample projects along with a well detailed implementation.

Member Avatar for ~s.o.s~
0
137
Member Avatar for o0DarkEvil0o

This code snippet would be more suited in the Code Snippets section where it can be used / referenced by the masses out there. Please reconsider posting it there. A few comments: • [ICODE]location [/ICODE]is a property of the [ICODE]window [/ICODE]object and not the [ICODE]document [/ICODE]object. • Using [ICODE]document.write()[/ICODE] is …

Member Avatar for ~s.o.s~
1
150
Member Avatar for mattyd

Hmm...interesting thread -- its a pity in my old days I didn't like Biology, so no evolution for me. :D But seriously, my belief is that don't believe in anyone and you would be better off. That way, you can be rest assured that its [I]you [/I]who is responsible for …

Member Avatar for ~s.o.s~
3
10K

The End.