Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 357327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T12:11:42+00:00 2026-05-12T12:11:42+00:00

Weird to describe but here goes. I have a table with several rows. One

  • 0

Weird to describe but here goes.

I have a table with several rows. One of the fields in each row, is for an image. Now i dont want to show the image itself, but rather the filename of the image as a link.

When i click that link, i want to popup a window that will let me upload or choose a new image from a list.

The key is, when im done, i want the new filename to show up on the table a-la inline edit style.

Now i know how to display the filename as a link, i know how to popup a window, i know how to upload images, or display some to select from. What i dont know how to do, is once i select or upload an image, to then go back and change that text.

Say the fieldname containing the filename text is #picfield1.(will be unique per field)
What would be the best way of building this. Should i use a layer on page like a modal, or should i use a seperate window?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T12:11:42+00:00Added an answer on May 12, 2026 at 12:11 pm

    When the popup is opened, you need to pass to it the row, or id, of the link that was clicked. Once the popup is done and prior to calling its window.close() function (if it’s a real popup), have it do something like this:

    window.opener.updateImageLink(row, fileName); //will call a function on the parent window
    

    Where row is what was passed to this popup initially and filename is the effective filename with which to update the link.

    This will call the following function:

    function updateImageLink(row, fileName)
    {
      document.getElementById("#picfield" + row).innerHTML = escape(fileName);
    }
    

    This assumes that the fields are enumerated as #picField1, #picField2, etc. You may need to add one to row when making this call.

    This needs to be tweaked, of course, based on your specific needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Weird behavior when mixing loading of assemblies using Assembly.LoadFrom and Assembly.Load : I have
This is pretty weird. I have my Profiler open and it obviously shows that
I've seen this weird behavior on several sites recently: I scroll down a page
This is a really weird problem that I have been having. When I download
This could be weird, Have you ever come across a blog which you wanted
I have a weird date rounding problem that hopefully someone can solve. My client
A weird bug was occurring in production which I was asked to look into.
There are two weird operators in C#: the true operator the false operator If
I'm having a weird issue with Visual Studio 2008. Every time I fire it
I've got this weird problem - I'm calling ChangeServiceConfig on a newly installed service

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.