User Profile

Collapse

Profile Sidebar

Collapse
Gotejjeken
Gotejjeken
Last Activity: Nov 21 '08, 04:56 PM
Joined: Sep 18 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Gotejjeken
    replied to Javascript and Update Panels
    in .NET
    The Javascript is just sitting in a folder called dojosource. I then want to reference that folder and compile the dojo.js class, and then the two other required classes. As mentioned this works fine on a normal postback but gets messed up if an UpdatePanel is used.
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    started a topic Javascript and Update Panels
    in .NET

    Javascript and Update Panels

    I've been using the Dojo Toolkit to implement Drag and Drop in my page, and all works fine until an asynchronous postback occurs, then the Javascript stops functioning. In my .NET page I have this in my Page_Load:

    Code:
     ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "dojo", "<script type='text/javascript' src='/Pages/dojosource/dojo/dojo.js' djConfig='parseOnLoad: true'></script>", false);
    ...
    See more | Go to post

  • I'll have to look into the RadioButtonList . The problem with looping through my radio buttons is that they are dynamically generated, so when the page posts back they are gone. I also have a dynamically generated submit button, so when I post back that's gone also.

    I can successfully get the button back by re-creating it and setting an event handler on it. I tried storing the actual radio buttons in the viewstate and pulling them...
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    started a topic Storing radio button values after postback (C#)
    in .NET

    Storing radio button values after postback (C#)

    I have a form with four radio buttons and I want to store the value of the selected radio button (it's a poll and need to capture and record the user's response). I'm dynamically generating everything, so I'm a bit confused as to how to know which radio button was selected and what it's value is.

    Is dynamically generating the poll form the easiest way, then on postback (provided the user passed a db check that says they already...
    See more | Go to post

  • Gotejjeken
    started a topic RegEx question
    in Perl

    RegEx question

    I have a string of characters "PME". I only want the string to be valid if it matches PME exactly (in that order) and must be exactly three letters long (case insensitive). In short, only the string PME will work, no variations, and no shorter.

    I have this so far:

    Code:
    [p(?=m(?=e))P(?=M(?=E))]
    This will ensure that PME is in the correct sequence, but something like PM works also which I can't...
    See more | Go to post

  • Gotejjeken
    replied to Dining Philosophers / C++/ Linux question
    in C
    The edit button disappeared >_<. Anyway, I figured the above out, turns out I didn't have to use a vector afterall.

    Anyway, I'm trying to use a makefile to put this thing all together, yet it's throwing errors at me. Anyone know what's wrong with this:

    Code:
    CC = g++ 
    CFLAGS = -Wall -Ansi 
    OBJECTS = dining_philosophers.o msecond.o random_int.o
    project2: $(OBJECTS)
    	$(CC)$(CFLAGS)$(OBJECTS)
    ...
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    replied to Dining Philosophers / C++/ Linux question
    in C
    Alright I have another question regarding this. I modified the program so it works for any number of Philosophers, however the downside is that number has to be a predefined constant. I'm using this Semaphore class:

    Code:
    class Semaphore
    {
    private:
         sem_t semaphore
    public:
         Semaphore(int value = 1) {(void) sem_init(&semaphore,0,value);};
       ~Semaphore(void)   {(void) sem_destroy(&semaphore);};
    ...
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    replied to Dining Philosophers / C++/ Linux question
    in C
    Yeah I wasn't compiling right, I wasn't linking the two .h files with the .cpp/cc file. This line worked though:

    Code:
    g++ dining_philosophers.cc -lpthread msecond.o random_int.o
    Thanks for the tip.
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    started a topic Dining Philosophers / C++/ Linux question
    in C

    Dining Philosophers / C++/ Linux question

    I am attempting to compile this in Fedora:

    http://www.math-cs.gordon.edu/courses/cs322/projects/p2/dp/c++/philosopher.cc

    I've used all of the source files and the makefile provided yet I am getting the errors:

    undefined reference to 'msecond'
    undefined reference to 'random_int'

    Our Linux teacher was very sketchy on how to actually write makefiles / compile programs in general (he...
    See more | Go to post

  • Gotejjeken
    replied to Need a little UNIX re-direction help
    in C
    EDIT: Just looking at my code a bit more and I came up with this:

    Code:
    //--Declare a vector to hold junk email
    vector<string> emailAddresses;
    
    //--Declare a flag to determine what input we are using (0 = file, 1 = standard in)
    inputflag = 0;
    
    if(inputflag = 0)
    {
    	//--For file
    	writeFiles(file, emailAddresses, outputFileJ, outputFileG);
    }
    else
    ...
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    started a topic Need a little UNIX re-direction help
    in C

    Need a little UNIX re-direction help

    I am currently working on an email filter, and it will either get input from a file and then filter junk mail out, or get mail from cin. I have the file part working correctly, and I even got as far as to get basic re-direction and piping working.

    The only problem I have is when the user decides not to use re-direction, or a file, and instead they decide to enter text directly in the Terminal.

    I have this loop for...
    See more | Go to post

  • Gotejjeken
    started a topic C# Saving a byte[] to an Image file
    in .NET

    C# Saving a byte[] to an Image file

    I have an array of byte[] from a SharePoint site (using the Imaging() webservice and the Download method) and all I want to do is save it to a .jpg file. I've seemingly tried everything, including trying to make a new Bitmap from a Stream (but it is throwing an invalid parameter).

    Any suggestions?
    See more | Go to post

  • So you're saying I can add each entry in the string array as an attribute to the response header? Is there some way to cycle through the attributes such as in a for loop?
    See more | Go to post

    Leave a comment:


  • C# Web-App: Passing a string array to a JavaScript function

    I have an array of image file names, and I would like to pass them to a JavaScript function for display. Is there anyway I can get the page's codebehind to interact with javascript?
    See more | Go to post

  • Gotejjeken
    started a topic Writing an XML file
    in .NET

    Writing an XML file

    I want to create a program that calls a web service every so often and then writes the returned XML string to an XML file. If I try writing it with a plain old TextWriter I can view the file in the browser and it looks fine, however if I try to use that data in anyway .NET throws a "Data at the Root Level is Invalid" Exception.

    Is there some other way I can write the XML file?

    EDIT: This seems to be working...
    See more | Go to post

  • Gotejjeken
    replied to Dynamically Resizing an Image?
    in Java
    I see. Thanks for all the help.
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    replied to Dynamically Resizing an Image?
    in Java
    Doh! Thanks. It looks as if it is working now, I originally was trying to use 100 as a scale value before I noticed your example was MUCH smaller than that. I take it the function resizes in inches not pixels?
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    replied to Dynamically Resizing an Image?
    in Java
    Using your demo I have this:

    Code:
        private static byte[] resizeAnImage(UploadFile in, String type, int scale) 
        {
        	//--Create a new BufferedImage from our byte[]
        	BufferedImage bm = new BufferedImage(scale,scale,BufferedImage.TYPE_INT_RGB);
        	try
    		{
        		bm = ImageIO.read(in.getInpuStream());
    		}
        	catch(Exception e)
    		{
        		System.err.println("Exception:
    ...
    See more | Go to post

    Leave a comment:


  • Gotejjeken
    started a topic Dynamically Resizing an Image?
    in Java

    Dynamically Resizing an Image?

    I have an image stored in a database using a byte[]. Now, when I read it from the database I'd like to resize it to a certain size so I can avoid having to smash it using HTML.

    Does anyone know of a way to do this?
    See more | Go to post

  • Gotejjeken
    started a topic Firefox and focus()

    Firefox and focus()

    I have a form in a window and when the user closes the window I want to do a focus/blur on the form that opened the window in order to use some AJAX functionality.

    This will work fine in IE, however in Firefox I have to put an alert() before the focus/blur in order to get them to fire. My question is, is it possible to focus on a form element and blur off of that element in one window after closing another window without the use...
    See more | Go to post
No activity results to display
Show More
Working...